Package odata.msgraph.client.entity
Class Chat
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.Chat
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Chat extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChat.Builder
-
Field Summary
Fields Modifier and Type Field Description protected ChatTypechatTypeprotected OffsetDateTimecreatedDateTimeprotected List<TeamsAppInstallation>installedAppsprotected ChatMessageInfolastMessagePreviewprotected OffsetDateTimelastUpdatedDateTimeprotected List<ConversationMember>membersprotected List<ChatMessage>messagesprotected TeamworkOnlineMeetingInfoonlineMeetingInfoprotected List<ResourceSpecificPermissionGrant>permissionGrantsprotected List<PinnedChatMessageInfo>pinnedMessagesprotected List<TeamsTab>tabsprotected StringtenantIdprotected Stringtopicprotected ChatViewpointviewpointprotected StringwebUrl-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChat()
-
Method Summary
-
-
-
Field Detail
-
chatType
protected ChatType chatType
-
createdDateTime
protected OffsetDateTime createdDateTime
-
lastUpdatedDateTime
protected OffsetDateTime lastUpdatedDateTime
-
onlineMeetingInfo
protected TeamworkOnlineMeetingInfo onlineMeetingInfo
-
tenantId
protected String tenantId
-
topic
protected String topic
-
viewpoint
protected ChatViewpoint viewpoint
-
webUrl
protected String webUrl
-
installedApps
protected List<TeamsAppInstallation> installedApps
-
lastMessagePreview
protected ChatMessageInfo lastMessagePreview
-
members
protected List<ConversationMember> members
-
messages
protected List<ChatMessage> messages
-
permissionGrants
protected List<ResourceSpecificPermissionGrant> permissionGrants
-
pinnedMessages
protected List<PinnedChatMessageInfo> pinnedMessages
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderChat
public static Chat.Builder builderChat()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
-
withCreatedDateTime
public Chat withCreatedDateTime(OffsetDateTime createdDateTime)
-
getLastUpdatedDateTime
public Optional<OffsetDateTime> getLastUpdatedDateTime()
-
withLastUpdatedDateTime
public Chat withLastUpdatedDateTime(OffsetDateTime lastUpdatedDateTime)
-
getOnlineMeetingInfo
public Optional<TeamworkOnlineMeetingInfo> getOnlineMeetingInfo()
-
withOnlineMeetingInfo
public Chat withOnlineMeetingInfo(TeamworkOnlineMeetingInfo onlineMeetingInfo)
-
getViewpoint
public Optional<ChatViewpoint> getViewpoint()
-
withViewpoint
public Chat withViewpoint(ChatViewpoint viewpoint)
-
withUnmappedField
public Chat withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getInstalledApps
public TeamsAppInstallationCollectionRequest getInstalledApps()
-
getLastMessagePreview
public ChatMessageInfoRequest getLastMessagePreview()
-
getMembers
public ConversationMemberCollectionRequest getMembers()
-
getMessages
public ChatMessageCollectionRequest getMessages()
-
getPermissionGrants
public ResourceSpecificPermissionGrantCollectionRequest getPermissionGrants()
-
getPinnedMessages
public PinnedChatMessageInfoCollectionRequest getPinnedMessages()
-
getTabs
public TeamsTabCollectionRequest getTabs()
-
withInstalledApps
public Chat withInstalledApps(List<TeamsAppInstallation> installedApps)
-
withLastMessagePreview
public Chat withLastMessagePreview(ChatMessageInfo lastMessagePreview)
-
withMembers
public Chat withMembers(List<ConversationMember> members)
-
withMessages
public Chat withMessages(List<ChatMessage> messages)
-
withPermissionGrants
public Chat withPermissionGrants(List<ResourceSpecificPermissionGrant> permissionGrants)
-
withPinnedMessages
public Chat withPinnedMessages(List<PinnedChatMessageInfo> pinnedMessages)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public Chat patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public Chat put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
sendActivityNotification
public com.github.davidmoten.odata.client.ActionRequestNoReturn sendActivityNotification(TeamworkActivityTopic topic, String activityType, Long chainId, ItemBody previewText, List<KeyValuePair> templateParameters, TeamworkNotificationRecipient recipient)
-
hideForUser
public com.github.davidmoten.odata.client.ActionRequestNoReturn hideForUser(TeamworkUserIdentity user)
-
markChatReadForUser
public com.github.davidmoten.odata.client.ActionRequestNoReturn markChatReadForUser(TeamworkUserIdentity user)
-
markChatUnreadForUser
public com.github.davidmoten.odata.client.ActionRequestNoReturn markChatUnreadForUser(TeamworkUserIdentity user, OffsetDateTime lastMessageReadDateTime)
-
unhideForUser
public com.github.davidmoten.odata.client.ActionRequestNoReturn unhideForUser(TeamworkUserIdentity user)
-
-