Class Chat

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.Chat
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Chat extends Entity implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • Chat

      public Chat()
      Instantiates a new Chat and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Chat 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 Chat
    • getChatType

      @Nullable public ChatType getChatType()
      Gets the chatType property value. The chatType property
      Returns:
      a ChatType
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. Date and time at which the chat was created. Read-only.
      Returns:
      a OffsetDateTime
    • 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>>
    • getInstalledApps

      @Nullable public List<TeamsAppInstallation> getInstalledApps()
      Gets the installedApps property value. A collection of all the apps in the chat. Nullable.
      Returns:
      a List<TeamsAppInstallation>
    • getIsHiddenForAllMembers

      @Nullable public Boolean getIsHiddenForAllMembers()
      Gets the isHiddenForAllMembers property value. Indicates whether the chat is hidden for all its members. Read-only.
      Returns:
      a Boolean
    • getLastMessagePreview

      @Nullable public ChatMessageInfo getLastMessagePreview()
      Gets the lastMessagePreview property value. Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property.
      Returns:
      a ChatMessageInfo
    • getLastUpdatedDateTime

      @Nullable public OffsetDateTime getLastUpdatedDateTime()
      Gets the lastUpdatedDateTime property value. Date and time at which the chat was renamed or the list of members was last changed. Read-only.
      Returns:
      a OffsetDateTime
    • getMembers

      @Nullable public List<ConversationMember> getMembers()
      Gets the members property value. A collection of all the members in the chat. Nullable.
      Returns:
      a List<ConversationMember>
    • getMessages

      @Nullable public List<ChatMessage> getMessages()
      Gets the messages property value. A collection of all the messages in the chat. Nullable.
      Returns:
      a List<ChatMessage>
    • getOnlineMeetingInfo

      @Nullable public TeamworkOnlineMeetingInfo getOnlineMeetingInfo()
      Gets the onlineMeetingInfo property value. Represents details about an online meeting. If the chat isn't associated with an online meeting, the property is empty. Read-only.
      Returns:
      a TeamworkOnlineMeetingInfo
    • getPermissionGrants

      @Nullable public List<ResourceSpecificPermissionGrant> getPermissionGrants()
      Gets the permissionGrants property value. A collection of permissions granted to apps for the chat.
      Returns:
      a List<ResourceSpecificPermissionGrant>
    • getPinnedMessages

      @Nullable public List<PinnedChatMessageInfo> getPinnedMessages()
      Gets the pinnedMessages property value. A collection of all the pinned messages in the chat. Nullable.
      Returns:
      a List<PinnedChatMessageInfo>
    • getTabs

      @Nullable public List<TeamsTab> getTabs()
      Gets the tabs property value. A collection of all the tabs in the chat. Nullable.
      Returns:
      a List<TeamsTab>
    • getTenantId

      @Nullable public String getTenantId()
      Gets the tenantId property value. The identifier of the tenant in which the chat was created. Read-only.
      Returns:
      a String
    • getTopic

      @Nullable public String getTopic()
      Gets the topic property value. (Optional) Subject or topic for the chat. Only available for group chats.
      Returns:
      a String
    • getViewpoint

      @Nullable public ChatViewpoint getViewpoint()
      Gets the viewpoint property value. Represents caller-specific information about the chat, such as the last message read date and time. This property is populated only when the request is made in a delegated context.
      Returns:
      a ChatViewpoint
    • getWebUrl

      @Nullable public String getWebUrl()
      Gets the webUrl property value. The URL for the chat in Microsoft Teams. The URL should be treated as an opaque blob, and not parsed. Read-only.
      Returns:
      a 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
    • setChatType

      public void setChatType(@Nullable ChatType value)
      Sets the chatType property value. The chatType property
      Parameters:
      value - Value to set for the chatType property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. Date and time at which the chat was created. Read-only.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setInstalledApps

      public void setInstalledApps(@Nullable List<TeamsAppInstallation> value)
      Sets the installedApps property value. A collection of all the apps in the chat. Nullable.
      Parameters:
      value - Value to set for the installedApps property.
    • setIsHiddenForAllMembers

      public void setIsHiddenForAllMembers(@Nullable Boolean value)
      Sets the isHiddenForAllMembers property value. Indicates whether the chat is hidden for all its members. Read-only.
      Parameters:
      value - Value to set for the isHiddenForAllMembers property.
    • setLastMessagePreview

      public void setLastMessagePreview(@Nullable ChatMessageInfo value)
      Sets the lastMessagePreview property value. Preview of the last message sent in the chat. Null if no messages were sent in the chat. Currently, only the list chats operation supports this property.
      Parameters:
      value - Value to set for the lastMessagePreview property.
    • setLastUpdatedDateTime

      public void setLastUpdatedDateTime(@Nullable OffsetDateTime value)
      Sets the lastUpdatedDateTime property value. Date and time at which the chat was renamed or the list of members was last changed. Read-only.
      Parameters:
      value - Value to set for the lastUpdatedDateTime property.
    • setMembers

      public void setMembers(@Nullable List<ConversationMember> value)
      Sets the members property value. A collection of all the members in the chat. Nullable.
      Parameters:
      value - Value to set for the members property.
    • setMessages

      public void setMessages(@Nullable List<ChatMessage> value)
      Sets the messages property value. A collection of all the messages in the chat. Nullable.
      Parameters:
      value - Value to set for the messages property.
    • setOnlineMeetingInfo

      public void setOnlineMeetingInfo(@Nullable TeamworkOnlineMeetingInfo value)
      Sets the onlineMeetingInfo property value. Represents details about an online meeting. If the chat isn't associated with an online meeting, the property is empty. Read-only.
      Parameters:
      value - Value to set for the onlineMeetingInfo property.
    • setPermissionGrants

      public void setPermissionGrants(@Nullable List<ResourceSpecificPermissionGrant> value)
      Sets the permissionGrants property value. A collection of permissions granted to apps for the chat.
      Parameters:
      value - Value to set for the permissionGrants property.
    • setPinnedMessages

      public void setPinnedMessages(@Nullable List<PinnedChatMessageInfo> value)
      Sets the pinnedMessages property value. A collection of all the pinned messages in the chat. Nullable.
      Parameters:
      value - Value to set for the pinnedMessages property.
    • setTabs

      public void setTabs(@Nullable List<TeamsTab> value)
      Sets the tabs property value. A collection of all the tabs in the chat. Nullable.
      Parameters:
      value - Value to set for the tabs property.
    • setTenantId

      public void setTenantId(@Nullable String value)
      Sets the tenantId property value. The identifier of the tenant in which the chat was created. Read-only.
      Parameters:
      value - Value to set for the tenantId property.
    • setTopic

      public void setTopic(@Nullable String value)
      Sets the topic property value. (Optional) Subject or topic for the chat. Only available for group chats.
      Parameters:
      value - Value to set for the topic property.
    • setViewpoint

      public void setViewpoint(@Nullable ChatViewpoint value)
      Sets the viewpoint property value. Represents caller-specific information about the chat, such as the last message read date and time. This property is populated only when the request is made in a delegated context.
      Parameters:
      value - Value to set for the viewpoint property.
    • setWebUrl

      public void setWebUrl(@Nullable String value)
      Sets the webUrl property value. The URL for the chat in Microsoft Teams. The URL should be treated as an opaque blob, and not parsed. Read-only.
      Parameters:
      value - Value to set for the webUrl property.