Search in sources :

Example 1 with ItemAttachment

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;
}
Also used : ItemAttachment(com.microsoft.graph.models.ItemAttachment)

Example 2 with ItemAttachment

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;
}
Also used : ItemAttachment(com.microsoft.graph.models.ItemAttachment) Contact(com.microsoft.graph.models.Contact)

Example 3 with ItemAttachment

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;
}
Also used : ItemAttachment(com.microsoft.graph.models.ItemAttachment) Contact(com.microsoft.graph.models.Contact)

Example 4 with ItemAttachment

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;
}
Also used : ItemAttachment(com.microsoft.graph.models.ItemAttachment)

Example 5 with ItemAttachment

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;
}
Also used : ItemAttachment(com.microsoft.graph.models.ItemAttachment) Contact(com.microsoft.graph.models.Contact)

Aggregations

ItemAttachment (com.microsoft.graph.models.ItemAttachment)10 Contact (com.microsoft.graph.models.Contact)6 JsonElement (com.google.gson.JsonElement)2 Attachment (com.microsoft.graph.models.Attachment)2 Event (com.microsoft.graph.models.Event)2 FileAttachment (com.microsoft.graph.models.FileAttachment)2 Test (org.junit.jupiter.api.Test)2