public async Task <Meeting> DeleteMeetingAsync(string id, RecurrentModification modificationKind = RecurrentModification.All, DateTime?targetDate = null, Func <Partial <Meeting>, Partial <Meeting> >?partial = null, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); if (targetDate != null) { queryParameters.Append("targetDate", targetDate?.ToString("yyyy-MM-ddTHH:mm:ss.fffZ")); } queryParameters.Append("modificationKind", modificationKind.ToEnumString()); queryParameters.Append("$fields", (partial != null ? partial(new Partial <Meeting>()) : Partial <Meeting> .Default()).ToString()); return(await _connection.RequestResourceAsync <Meeting>("DELETE", $"api/http/calendars/meetings/{id}{queryParameters.ToQueryString()}", cancellationToken)); }
public CalendarsMeetingsForIdPatchRequest(Diff locationsDiff, Diff profilesDiff, Diff externalParticipantsDiff, Diff teamsDiff, bool notifyOnExport = true, RecurrentModification modificationKind = RecurrentModification.All, string?summary = null, string?description = null, CalendarEventSpec?occurrenceRule = null, MeetingVisibility?visibility = null, MeetingModificationPreference?modificationPreference = null, MeetingJoiningPreference?joiningPreference = null, string?organizer = null, DateTime?targetDate = null) { Summary = summary; Description = description; OccurrenceRule = occurrenceRule; LocationsDiff = locationsDiff; ProfilesDiff = profilesDiff; ExternalParticipantsDiff = externalParticipantsDiff; TeamsDiff = teamsDiff; Visibility = visibility; ModificationPreference = modificationPreference; JoiningPreference = joiningPreference; IsNotifyOnExport = notifyOnExport; Organizer = organizer; TargetDate = targetDate; ModificationKind = modificationKind; }
public async Task <Meeting> UpdateMeetingAsync(string id, Diff locationsDiff, Diff profilesDiff, Diff externalParticipantsDiff, Diff teamsDiff, bool notifyOnExport = true, RecurrentModification modificationKind = RecurrentModification.All, string?summary = null, string?description = null, CalendarEventSpec?occurrenceRule = null, MeetingVisibility?visibility = null, MeetingModificationPreference?modificationPreference = null, MeetingJoiningPreference?joiningPreference = null, string?organizer = null, DateTime?targetDate = null, EventConferenceData?conferenceData = null, Func <Partial <Meeting>, Partial <Meeting> >?partial = null, CancellationToken cancellationToken = default) { var queryParameters = new NameValueCollection(); queryParameters.Append("$fields", (partial != null ? partial(new Partial <Meeting>()) : Partial <Meeting> .Default()).ToString()); return(await _connection.RequestResourceAsync <CalendarsMeetingsForIdPatchRequest, Meeting>("PATCH", $"api/http/calendars/meetings/{id}{queryParameters.ToQueryString()}", new CalendarsMeetingsForIdPatchRequest { Summary = summary, Description = description, OccurrenceRule = occurrenceRule, LocationsDiff = locationsDiff, ProfilesDiff = profilesDiff, ExternalParticipantsDiff = externalParticipantsDiff, TeamsDiff = teamsDiff, Visibility = visibility, ModificationPreference = modificationPreference, JoiningPreference = joiningPreference, IsNotifyOnExport = notifyOnExport, Organizer = organizer, TargetDate = targetDate, ModificationKind = modificationKind, ConferenceData = conferenceData, }, cancellationToken)); }