Package com.microsoft.graph.models
Class Conversation
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Conversation
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Conversation
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Conversation
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueThe deserialization information for the current modelGets the hasAttachments property value.Gets the lastDeliveredDateTime property value.Gets the preview property value.Gets the threads property value.getTopic()
Gets the topic property value.Gets the uniqueSenders property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setHasAttachments
(Boolean value) Sets the hasAttachments property value.void
Sets the lastDeliveredDateTime property value.void
setPreview
(String value) Sets the preview property value.void
setThreads
(List<ConversationThread> value) Sets the threads property value.void
Sets the topic property value.void
setUniqueSenders
(List<String> value) Sets the uniqueSenders property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Conversation
public Conversation()Instantiates a newConversation
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Conversation createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
Conversation
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getHasAttachments
Gets the hasAttachments property value. Indicates whether any of the posts within this Conversation has at least one attachment. Supports $filter (eq, ne) and $search.- Returns:
- a
Boolean
-
getLastDeliveredDateTime
Gets the lastDeliveredDateTime property value. 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 is 2014-01-01T00:00:00Z- Returns:
- a
OffsetDateTime
-
getPreview
Gets the preview property value. A short summary from the body of the latest post in this conversation. Supports $filter (eq, ne, le, ge).- Returns:
- a
String
-
getThreads
Gets the threads property value. A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable.- Returns:
- a
List<ConversationThread>
-
getTopic
Gets the topic property value. The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated.- Returns:
- a
String
-
getUniqueSenders
Gets the uniqueSenders property value. All the users that sent a message to this Conversation. -
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setHasAttachments
Sets the hasAttachments property value. Indicates whether any of the posts within this Conversation has at least one attachment. Supports $filter (eq, ne) and $search.- Parameters:
value
- Value to set for the hasAttachments property.
-
setLastDeliveredDateTime
Sets the lastDeliveredDateTime property value. 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 is 2014-01-01T00:00:00Z- Parameters:
value
- Value to set for the lastDeliveredDateTime property.
-
setPreview
Sets the preview property value. A short summary from the body of the latest post in this conversation. Supports $filter (eq, ne, le, ge).- Parameters:
value
- Value to set for the preview property.
-
setThreads
Sets the threads property value. A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable.- Parameters:
value
- Value to set for the threads property.
-
setTopic
Sets the topic property value. The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated.- Parameters:
value
- Value to set for the topic property.
-
setUniqueSenders
Sets the uniqueSenders property value. All the users that sent a message to this Conversation.- Parameters:
value
- Value to set for the uniqueSenders property.
-