CreateServiceResponse method

  1. @override
GetAttachmentResponse CreateServiceResponse(
  1. ExchangeService service,
  2. int responseIndex
)
override
Creates the service response. The service. Index of the response.

Implementation

@override
GetAttachmentResponse CreateServiceResponse(
  ExchangeService service,
  int responseIndex,
) {
  return GetAttachmentResponse(
    Attachments.isNotEmpty ? Attachments[responseIndex] : null,
  );
}