use of com.microsoft.graph.models.ItemAttachment in project msgraph-sdk-java by microsoftgraph.
the class CollectionPageSerializerTests method getItemAttachmentWithEvent.
private ItemAttachment getItemAttachmentWithEvent() {
ItemAttachment itemAttachmentEvent = new ItemAttachment();
itemAttachmentEvent.oDataType = "#microsoft.graph.itemAttachment";
itemAttachmentEvent.name = "Holiday event";
itemAttachmentEvent.item = getEvent();
itemAttachmentEvent.item.oDataType = "microsoft.graph.event";
return itemAttachmentEvent;
}
use of com.microsoft.graph.models.ItemAttachment in project msgraph-sdk-java by microsoftgraph.
the class OutlookTests method getItemAttachmentWithContact.
private ItemAttachment getItemAttachmentWithContact() {
Contact contact = new Contact();
contact.displayName = "displayname";
contact.mobilePhone = "123456890";
ItemAttachment itemAttachmentContact = new ItemAttachment();
itemAttachmentContact.oDataType = "#microsoft.graph.itemAttachment";
itemAttachmentContact.name = "Attachment name";
itemAttachmentContact.item = contact;
itemAttachmentContact.item.oDataType = "microsoft.graph.contact";
return itemAttachmentContact;
}
use of com.microsoft.graph.models.ItemAttachment in project msgraph-beta-sdk-java by microsoftgraph.
the class CollectionPageSerializerTests method getItemAttachmentWithContact.
private ItemAttachment getItemAttachmentWithContact() {
Contact contact = new Contact();
contact.displayName = "displayname";
contact.officeLocation = "Montreal";
ItemAttachment itemAttachmentContact = new ItemAttachment();
itemAttachmentContact.oDataType = "#microsoft.graph.itemAttachment";
itemAttachmentContact.name = "Attachment name";
itemAttachmentContact.item = contact;
itemAttachmentContact.item.oDataType = "microsoft.graph.contact";
return itemAttachmentContact;
}
use of com.microsoft.graph.models.ItemAttachment in project msgraph-beta-sdk-java by microsoftgraph.
the class OutlookTests method getItemAttachmentWithEvent.
private ItemAttachment getItemAttachmentWithEvent() {
ItemAttachment itemAttachmentEvent = new ItemAttachment();
itemAttachmentEvent.oDataType = "#microsoft.graph.itemAttachment";
itemAttachmentEvent.name = "event name";
itemAttachmentEvent.item = getEvent();
itemAttachmentEvent.item.oDataType = "microsoft.graph.event";
return itemAttachmentEvent;
}
use of com.microsoft.graph.models.ItemAttachment in project msgraph-beta-sdk-java by microsoftgraph.
the class OutlookTests method getItemAttachmentWithContact.
private ItemAttachment getItemAttachmentWithContact() {
Contact contact = new Contact();
contact.displayName = "displayname";
contact.officeLocation = "Montreal";
ItemAttachment itemAttachmentContact = new ItemAttachment();
itemAttachmentContact.oDataType = "#microsoft.graph.itemAttachment";
itemAttachmentContact.name = "Attachment name";
itemAttachmentContact.item = contact;
itemAttachmentContact.item.oDataType = "microsoft.graph.contact";
return itemAttachmentContact;
}
Aggregations