Reply method

Future<void> Reply(
  1. MessageBody bodyPrefix,
  2. bool replyAll
)
Replies to the post item. Calling this method results in a call to EWS. The prefix to prepend to the original body of the post item. Indicates whether the reply should be sent to everyone involved in the thread.

Implementation

Future<void> Reply(MessageBody bodyPrefix, bool replyAll) async {
  ResponseMessage responseMessage = CreateReply(replyAll);

  responseMessage.BodyPrefix = bodyPrefix;

  // Equivalent of responseMessage.SendAndSaveCopy(), awaited.
  await responseMessage.InternalCreate(
    null,
    MessageDisposition.SendAndSaveCopy,
  );
}