use of com.microsoft.graph.requests.AttachmentCollectionResponse in project msgraph-beta-sdk-java by microsoftgraph.
the class OutlookTests method sendEventWithAttachment.
@Test
public void sendEventWithAttachment() throws Exception {
TestBase testBase = new TestBase();
Event event = getEvent();
event.body = getItemBody();
event.hasAttachments = true;
AttachmentCollectionResponse response = new AttachmentCollectionResponse();
response.value = Arrays.asList(getFileAttachment(), getItemAttachmentWithContact());
event.attachments = new AttachmentCollectionPage(response, null);
Event eventResponse = testBase.graphClient.me().events().buildRequest().post(event);
assertNotNull(eventResponse);
}
Aggregations