updateStatus method

bool updateStatus(
  1. PolyGeofenceStatus status,
  2. DateTime timestamp
)

Update the status of PolyGeofence. Returns true if the status changes, false otherwise.

Implementation

bool updateStatus(PolyGeofenceStatus status, DateTime timestamp) {
  if (status != _status) {
    _status = status;
    _timestamp = timestamp;
    return true;
  }

  return false;
}