You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieve all events for a specified range/calendar, null will use defaults: calendarId will default to all Calendars retrieved, startDate will default to use, DefaultStartDate , endDate will default to use DefaultEndDate
Remove attendee from event based on attendee email and event Id, returns bool indicating whether removing attendee from event was successful
Classes
public class DeviceCalendar
{
public string Id { get; set; }
public string Name { get; set; }
public bool IsReadOnly { get; set; }
}
public class DeviceEvent
{
public string Id { get; set; }
public string CalendarId { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string Location { get; set; }
public bool AllDay { get; set; }
public DateTimeOffset StartDate { get; set; }
public TimeSpan? Duration { get; set; }
public DateTimeOffset? EndDate { get; set; }
public IEnumberable<Attendee> Attendees { get; set; }
}
public class DeviceEventAttendee
{
public string Name { get; set; }
public string Email { get; set; }
}
Scenarios
User wants to an event.
User wants to update an event.
User wants to delete an event.
User wants to add more attendees to an existing event.
User wants to remove attendees from an existing event.
I think we can remove the methods that were part of the read spec, since they haven't changed
I think for consistency create, update and delete should all accept an DeviceEvent as a parameter
Let's remove the attendee methods and use the update method instead.
Calendar API
Calendar API Update to no longer be read-only but will now have CRUD access to events for calendars seamlessly across uwp, iOS and Android.
API
Calendar
Methods
Task<IEnumerable<DeviceCalendar>> GetCalendarsAsync()
Task<IEnumerable<DeviceEvent>> GetEventsAsync( string calendarId = null, DateTimeOffset? startDate = null, DateTimeOffset? endDate = null)
Task<DeviceEvent> GetEventByIdAsync(string eventId)
Task<string> CreateEvent(DeviceEvent newEvent)
Task<bool> UpdateEvent(DeviceEvent updatedEvent)
Task<bool> DeleteEvent(string eventId)
Task<bool> AddAttendee(DeviceEventAttendee newAttendee, string eventId)
Task<bool> RemoveAttendee(string attendeeEmail, string eventId)
Classes
Scenarios
Platform Compatibility
Backward Compatibility
(https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.appointments.appointment)
(https://developer.android.com/reference/android/provider/CalendarContract)
(https://developer.apple.com/documentation/eventkit/ekeventstore)
Difficulty : medium
The text was updated successfully, but these errors were encountered: