Share via


MicrosoftGraphConversation Class

public final class MicrosoftGraphConversation
extends MicrosoftGraphEntity

Represents a conversation.

Constructor Summary

Constructor Description
MicrosoftGraphConversation()

Creates an instance of MicrosoftGraphConversation class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: conversation.

static MicrosoftGraphConversation fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphConversation from the JsonReader.

Boolean hasAttachments()

Get the hasAttachments property: Indicates whether any of the posts within this Conversation has at least one attachment.

OffsetDateTime lastDeliveredDateTime()

Get the lastDeliveredDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

String preview()

Get the preview property: A short summary from the body of the latest post in this converstaion.

List<MicrosoftGraphConversationThread> threads()

Get the threads property: A collection of all the conversation threads in the conversation.

JsonWriter toJson(JsonWriter jsonWriter)
String topic()

Get the topic property: The topic of the conversation.

List<String> uniqueSenders()

Get the uniqueSenders property: All the users that sent a message to this Conversation.

void validate()

Validates the instance.

MicrosoftGraphConversation withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: conversation.

MicrosoftGraphConversation withHasAttachments(Boolean hasAttachments)

Set the hasAttachments property: Indicates whether any of the posts within this Conversation has at least one attachment.

MicrosoftGraphConversation withId(String id)

Set the id property: Read-only.

MicrosoftGraphConversation withLastDeliveredDateTime(OffsetDateTime lastDeliveredDateTime)

Set the lastDeliveredDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

MicrosoftGraphConversation withPreview(String preview)

Set the preview property: A short summary from the body of the latest post in this converstaion.

MicrosoftGraphConversation withThreads(List<MicrosoftGraphConversationThread> threads)

Set the threads property: A collection of all the conversation threads in the conversation.

MicrosoftGraphConversation withTopic(String topic)

Set the topic property: The topic of the conversation.

MicrosoftGraphConversation withUniqueSenders(List<String> uniqueSenders)

Set the uniqueSenders property: All the users that sent a message to this Conversation.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphConversation

public MicrosoftGraphConversation()

Creates an instance of MicrosoftGraphConversation class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: conversation.

Overrides:

MicrosoftGraphConversation.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphConversation fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphConversation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphConversation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphConversation.

hasAttachments

public Boolean hasAttachments()

Get the hasAttachments property: Indicates whether any of the posts within this Conversation has at least one attachment.

Returns:

the hasAttachments value.

lastDeliveredDateTime

public OffsetDateTime lastDeliveredDateTime()

Get the lastDeliveredDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Returns:

the lastDeliveredDateTime value.

preview

public String preview()

Get the preview property: A short summary from the body of the latest post in this converstaion.

Returns:

the preview value.

threads

public List<MicrosoftGraphConversationThread> threads()

Get the threads property: A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable.

Returns:

the threads value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphConversation.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

topic

public String topic()

Get the topic property: The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated.

Returns:

the topic value.

uniqueSenders

public List<String> uniqueSenders()

Get the uniqueSenders property: All the users that sent a message to this Conversation.

Returns:

the uniqueSenders value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphConversation.validate()

withAdditionalProperties

public MicrosoftGraphConversation withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: conversation.

Overrides:

MicrosoftGraphConversation.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphConversation object itself.

withHasAttachments

public MicrosoftGraphConversation withHasAttachments(Boolean hasAttachments)

Set the hasAttachments property: Indicates whether any of the posts within this Conversation has at least one attachment.

Parameters:

hasAttachments - the hasAttachments value to set.

Returns:

the MicrosoftGraphConversation object itself.

withId

public MicrosoftGraphConversation withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphConversation.withId(String id)

Parameters:

id

withLastDeliveredDateTime

public MicrosoftGraphConversation withLastDeliveredDateTime(OffsetDateTime lastDeliveredDateTime)

Set the lastDeliveredDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Parameters:

lastDeliveredDateTime - the lastDeliveredDateTime value to set.

Returns:

the MicrosoftGraphConversation object itself.

withPreview

public MicrosoftGraphConversation withPreview(String preview)

Set the preview property: A short summary from the body of the latest post in this converstaion.

Parameters:

preview - the preview value to set.

Returns:

the MicrosoftGraphConversation object itself.

withThreads

public MicrosoftGraphConversation withThreads(List<MicrosoftGraphConversationThread> threads)

Set the threads property: A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable.

Parameters:

threads - the threads value to set.

Returns:

the MicrosoftGraphConversation object itself.

withTopic

public MicrosoftGraphConversation withTopic(String topic)

Set the topic property: The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated.

Parameters:

topic - the topic value to set.

Returns:

the MicrosoftGraphConversation object itself.

withUniqueSenders

public MicrosoftGraphConversation withUniqueSenders(List<String> uniqueSenders)

Set the uniqueSenders property: All the users that sent a message to this Conversation.

Parameters:

uniqueSenders - the uniqueSenders value to set.

Returns:

the MicrosoftGraphConversation object itself.

Applies to