Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The WorkingLocation should be returned based on the requested time frame.
WorkingLocationSchedule should also be included which is the default weekly schedule the user has defined.

CustomWorkingLocation FutureWorkingLocation will be dates and times that the user has specified as differing from their default schedule. This will only show future events.

Example

Code Block
languagejson
{
  "UserId": 13,
  "EmailAddress": "charlotte.hill@email.com",
  "Date": "yyyy/MM/DD",
  "StartTime": "HH:mm",
  "EndTime": "HH:mm"
  "Status": "available", // available, busy, do not disturb, away, offline
  "WorkingLocation": "Office",
  "ActiveBooking": xxxx, // if in a booking include booking ID
  "WorkingLocatingSchedule": {
    "Monday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Office"}
    ],
    "Tuesday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Office"}
    ],
    "Wednesday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Office"}
    ],
    "Thursday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Office"}
    ],
    "Friday": [
      {"StartTime": "09:00", "EndTime": "17:00", "Location": "Home"}
    ],
    "Saturday": [],
    "Sunday": [],
  }
  "CustomWorkingLocationFutureWorkingLocation": [
    {
      "Date": "dd/MM/yyyy",
      "StartTime": "HH:mm",
      "EndTime": "HH:mm",
      "WorkingLocation": "string"
    }
  ]
}