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 DefaultLocationSchedule should also be included which is the default weekly schedule the user has defined.

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

...

Code Block
languagejson
{
  "Id": int,
  "EmailAddress": "string (email address)",
  "Date": "yyyy/MM/DD",
  "StartTime": "HH:mm",
  "EndTime": "HH:mm"
  "Status": "string", // available, busy, do not disturb, away, offline
  "CurrentWorkingLocation": "string",
  "ActiveBooking": int, // if in a booking include booking ID
  "WorkingLocationScheduleDefaultLocationSchedule": Object{
    "Monday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Location": "string"}
    ],
    "Tuesday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Location": "string"}
    ],
    "Wednesday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Location": "string"}
    ],
    "Thursday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Location": "string"}
    ],
    "Friday": Array[
      Object{"StartTime": "09:00", "EndTime": "17:00", "Location": "string"}
    ],
    "Saturday": Array[],
    "Sunday": Array[],
  }
  "FutureWorkingLocationFutureLocationSchedule": Array[
    Object{
      "Date": "dd/MM/yyyy",
      "StartTime": "HH:mm",
      "EndTime": "HH:mm",
      "WorkingLocation": "string"
    }
  ]
}