InternalGetAttachments method
Future<ServiceResponseCollection<GetAttachmentResponse> >
InternalGetAttachments(
- Iterable<
Attachment> attachments, - BodyType? bodyType,
- Iterable<
PropertyDefinitionBase> ? additionalProperties, - ServiceErrorHandling errorHandling,
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();
}