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
  • Constructor Details

    • Conversation

      public Conversation()
      Instantiates a new Conversation 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getHasAttachments

      @Nullable public Boolean 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

      @Nullable public OffsetDateTime 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

      @Nullable public String 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

      @Nullable public List<ConversationThread> 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

      @Nullable public String 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

      @Nullable public List<String> getUniqueSenders()
      Gets the uniqueSenders property value. All the users that sent a message to this Conversation.
      Returns:
      a List<String>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setHasAttachments

      public void setHasAttachments(@Nullable Boolean value)
      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

      public void setLastDeliveredDateTime(@Nullable OffsetDateTime value)
      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

      public void setPreview(@Nullable String value)
      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

      public void setThreads(@Nullable List<ConversationThread> value)
      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

      public void setTopic(@Nullable String value)
      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

      public void setUniqueSenders(@Nullable List<String> value)
      Sets the uniqueSenders property value. All the users that sent a message to this Conversation.
      Parameters:
      value - Value to set for the uniqueSenders property.