GetEvents method

Future<GetEventsResults> GetEvents(
  1. String? subscriptionId,
  2. String? watermark
)
Retrieves the latests events associated with a pull subscription. Calling this method results in a call to EWS. The Id of the pull subscription for which to get the events. The watermark representing the point in time where to start receiving events.

Implementation

Future<GetEventsResults> GetEvents(
  String? subscriptionId,
  String? watermark,
) async {
  return (await BuildGetEventsRequest(
    subscriptionId,
    watermark,
  ).Execute())[0].Results;
}