InternalCreateResponseObject method
Future<List<Item> >
InternalCreateResponseObject(
- ServiceObject responseObject,
- FolderId? parentFolderId,
- MessageDisposition messageDisposition
Implementation
Future<List<Item>> InternalCreateResponseObject(ServiceObject responseObject,
FolderId? parentFolderId, MessageDisposition messageDisposition) async {
CreateResponseObjectRequest request = new CreateResponseObjectRequest(
this, ServiceErrorHandling.ThrowOnError);
request.ParentFolderId = parentFolderId;
request.Items = [responseObject];
request.MessageDisposition = messageDisposition;
ServiceResponseCollection<CreateResponseObjectResponse> responses =
await request.Execute();
return responses[0].Items;
}