InternalGetAttachments method

Future<ServiceResponseCollection<GetAttachmentResponse>> InternalGetAttachments(
  1. Iterable<Attachment> attachments,
  2. BodyType? bodyType,
  3. Iterable<PropertyDefinitionBase>? additionalProperties,
  4. ServiceErrorHandling errorHandling,
)
This method is for retreiving people insight for given email addresses Specified eamiladdresses to retrieve Gets an attachment. The attachments. Type of the body. The additional properties. Type of error handling to perform.

Implementation

//Collection<Person> GetPeopleInsights(Iterable<string> emailAddresses)
//        {
//            GetPeopleInsightsRequest request = new GetPeopleInsightsRequest(this);
//            request.Emailaddresses.AddRange(emailAddresses);
//
//            return request.Execute().People;
//        }

/// <summary>
/// Gets an attachment.
/// </summary>
/// <param name="attachments">The attachments.</param>
/// <param name="bodyType">Type of the body.</param>
/// <param name="additionalProperties">The additional properties.</param>
/// <param name="errorHandling">Type of error handling to perform.</param>
/// <returns>Service response collection.</returns>
Future<ServiceResponseCollection<GetAttachmentResponse>>
InternalGetAttachments(
  Iterable<Attachment> attachments,
  BodyType? bodyType,
  Iterable<PropertyDefinitionBase>? additionalProperties,
  ServiceErrorHandling errorHandling,
) {
  GetAttachmentRequest request = GetAttachmentRequest(this, errorHandling);

  request.Attachments.addAll(attachments);
  request.BodyType = bodyType;

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

  return request.Execute();
}