GetAttachment method

Future<void> GetAttachment(
  1. Attachment attachment,
  2. BodyType? bodyType,
  3. Iterable<PropertyDefinitionBase>? additionalProperties
)
Gets attachments. The attachments. Type of the body. The additional properties. Gets attachments. The attachment ids. Type of the body. The additional properties. Gets an attachment. The attachment. Type of the body. The additional properties.

Implementation

//ServiceResponseCollection<GetAttachmentResponse> GetAttachments(
//            Attachment[] attachments,
//            BodyType? bodyType,
//            Iterable<PropertyDefinitionBase> additionalProperties)
//        {
//            return this.InternalGetAttachments(
//                attachments,
//                bodyType,
//                additionalProperties,
//                ServiceErrorHandling.ReturnErrors);
//        }

/// <summary>
/// Gets attachments.
/// </summary>
/// <param name="attachmentIds">The attachment ids.</param>
/// <param name="bodyType">Type of the body.</param>
/// <param name="additionalProperties">The additional properties.</param>
/// <returns>Service response collection.</returns>
//ServiceResponseCollection<GetAttachmentResponse> GetAttachments(
//            string[] attachmentIds,
//            BodyType? bodyType,
//            Iterable<PropertyDefinitionBase> additionalProperties)
//        {
//            GetAttachmentRequest request = new GetAttachmentRequest(this, ServiceErrorHandling.ReturnErrors);
//
//            request.AttachmentIds.AddRange(attachmentIds);
//            request.BodyType = bodyType;
//
//            if (additionalProperties != null)
//            {
//                request.AdditionalProperties.AddRange(additionalProperties);
//            }
//
//            return request.Execute();
//        }

/// <summary>
/// Gets an attachment.
/// </summary>
/// <param name="attachment">The attachment.</param>
/// <param name="bodyType">Type of the body.</param>
/// <param name="additionalProperties">The additional properties.</param>
Future<void> GetAttachment(Attachment attachment, BodyType? bodyType,
    Iterable<PropertyDefinitionBase>? additionalProperties) {
  return this.InternalGetAttachments([attachment], bodyType,
      additionalProperties, ServiceErrorHandling.ThrowOnError);
}