GetAttachmentsWithIds method

Future<ServiceResponseCollection<GetAttachmentResponse>> GetAttachmentsWithIds(
  1. Iterable<String> attachmentIds,
  2. BodyType? bodyType,
  3. Iterable<PropertyDefinitionBase>? additionalProperties
)
Gets attachments. The attachment ids. Type of the body. The additional properties.

Implementation

Future<ServiceResponseCollection<GetAttachmentResponse>>
GetAttachmentsWithIds(
  Iterable<String> attachmentIds,
  BodyType? bodyType,
  Iterable<PropertyDefinitionBase>? additionalProperties,
) {
  GetAttachmentRequest request = GetAttachmentRequest(
    this,
    ServiceErrorHandling.ReturnErrors,
  );

  request.AttachmentIds.addAll(attachmentIds);
  request.BodyType = bodyType;

  if (additionalProperties != null) {
    request.AdditionalProperties.addAll(additionalProperties);
  }

  return request.Execute();
}