Package com.microsoft.graph.models
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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Chat
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the chatType property value.Gets the createdDateTime property value.The deserialization information for the current modelGets the installedApps property value.Gets the isHiddenForAllMembers property value.Gets the lastMessagePreview property value.Gets the lastUpdatedDateTime property value.Gets the members property value.Gets the messages property value.Gets the onlineMeetingInfo property value.Gets the permissionGrants property value.Gets the pinnedMessages property value.getTabs()
Gets the tabs property value.Gets the tenantId property value.getTopic()
Gets the topic property value.Gets the viewpoint property value.Gets the webUrl property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setChatType
(ChatType value) Sets the chatType property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
setInstalledApps
(List<TeamsAppInstallation> value) Sets the installedApps property value.void
setIsHiddenForAllMembers
(Boolean value) Sets the isHiddenForAllMembers property value.void
Sets the lastMessagePreview property value.void
Sets the lastUpdatedDateTime property value.void
setMembers
(List<ConversationMember> value) Sets the members property value.void
setMessages
(List<ChatMessage> value) Sets the messages property value.void
Sets the onlineMeetingInfo property value.void
Sets the permissionGrants property value.void
Sets the pinnedMessages property value.void
Sets the tabs property value.void
setTenantId
(String value) Sets the tenantId property value.void
Sets the topic property value.void
setViewpoint
(ChatViewpoint value) Sets the viewpoint property value.void
Sets the webUrl property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Chat
public Chat()Instantiates a newChat
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
Gets the chatType property value. The chatType property- Returns:
- a
ChatType
-
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 interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getInstalledApps
Gets the installedApps property value. A collection of all the apps in the chat. Nullable.- Returns:
- a
List<TeamsAppInstallation>
-
getIsHiddenForAllMembers
Gets the isHiddenForAllMembers property value. Indicates whether the chat is hidden for all its members. Read-only.- Returns:
- a
Boolean
-
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
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
Gets the members property value. A collection of all the members in the chat. Nullable.- Returns:
- a
List<ConversationMember>
-
getMessages
Gets the messages property value. A collection of all the messages in the chat. Nullable.- Returns:
- a
List<ChatMessage>
-
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
Gets the permissionGrants property value. A collection of permissions granted to apps for the chat.- Returns:
- a
List<ResourceSpecificPermissionGrant>
-
getPinnedMessages
Gets the pinnedMessages property value. A collection of all the pinned messages in the chat. Nullable.- Returns:
- a
List<PinnedChatMessageInfo>
-
getTabs
Gets the tabs property value. A collection of all the tabs in the chat. Nullable. -
getTenantId
Gets the tenantId property value. The identifier of the tenant in which the chat was created. Read-only.- Returns:
- a
String
-
getTopic
Gets the topic property value. (Optional) Subject or topic for the chat. Only available for group chats.- Returns:
- a
String
-
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
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 -
setChatType
Sets the chatType property value. The chatType property- Parameters:
value
- Value to set for the chatType property.
-
setCreatedDateTime
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
-