Decline method

  1. @override
Future<CalendarActionResults> Decline(
  1. bool sendResponse
)
override
Declines the meeting invitation. Calling this method results in a call to EWS. Indicates whether to send a response to the organizer.

Implementation

@override
Future<CalendarActionResults> Decline(bool sendResponse) {
  DeclineMeetingInvitationMessage decline = CreateDeclineMessage();

  if (sendResponse) {
    return decline.SendAndSaveCopy();
  } else {
    return decline.SaveCalendarResponse();
  }
}