Package odata.msgraph.client.entity
Class Channel
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.Channel
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Channel extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChannel.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected StringdisplayNameprotected Stringemailprotected DriveItemfilesFolderprotected BooleanisFavoriteByDefaultprotected List<ConversationMember>membersprotected ChannelMembershipTypemembershipTypeprotected List<ChatMessage>messagesprotected List<SharedWithChannelTeamInfo>sharedWithTeamsprotected ChannelSummarysummaryprotected List<TeamsTab>tabsprotected StringtenantIdprotected StringwebUrl-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChannel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Channel.BuilderbuilderChannel()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.ActionRequestNoReturncompleteMigration()com.github.davidmoten.odata.client.FunctionRequestReturningNonCollection<Boolean>doesUserHaveAccess(String userId, String tenantId, String userPrincipalName)com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()Optional<String>getDescription()Optional<String>getDisplayName()Optional<String>getEmail()DriveItemRequestgetFilesFolder()Optional<Boolean>getIsFavoriteByDefault()ConversationMemberCollectionRequestgetMembers()Optional<ChannelMembershipType>getMembershipType()ChatMessageCollectionRequestgetMessages()Org.OData.Capabilities.V1.ChangeTrackingSharedWithChannelTeamInfoCollectionRequestgetSharedWithTeams()Optional<ChannelSummary>getSummary()TeamsTabCollectionRequestgetTabs()Optional<String>getTenantId()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getWebUrl()StringodataTypeName()Channelpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<ProvisionChannelEmailResult>provisionEmail()Channelput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnremoveEmail()StringtoString()ChannelwithCreatedDateTime(OffsetDateTime createdDateTime)ChannelwithDescription(String description)ChannelwithDisplayName(String displayName)ChannelwithEmail(String email)ChannelwithFilesFolder(DriveItem filesFolder)ChannelwithIsFavoriteByDefault(Boolean isFavoriteByDefault)ChannelwithMembers(List<ConversationMember> members)ChannelwithMembershipType(ChannelMembershipType membershipType)ChannelwithMessages(List<ChatMessage> messages)Returns an immutable copy ofthiswith just themessagesfield changed.ChannelwithSharedWithTeams(List<SharedWithChannelTeamInfo> sharedWithTeams)ChannelwithSummary(ChannelSummary summary)ChannelwithTabs(List<TeamsTab> tabs)ChannelwithTenantId(String tenantId)ChannelwithUnmappedField(String name, Object value)ChannelwithWebUrl(String webUrl)
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
displayName
protected String displayName
-
email
protected String email
-
isFavoriteByDefault
protected Boolean isFavoriteByDefault
-
membershipType
protected ChannelMembershipType membershipType
-
summary
protected ChannelSummary summary
-
tenantId
protected String tenantId
-
webUrl
protected String webUrl
-
filesFolder
protected DriveItem filesFolder
-
members
protected List<ConversationMember> members
-
messages
protected List<ChatMessage> messages
-
sharedWithTeams
protected List<SharedWithChannelTeamInfo> sharedWithTeams
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderChannel
public static Channel.Builder builderChannel()
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 Channel withCreatedDateTime(OffsetDateTime createdDateTime)
-
getMembershipType
public Optional<ChannelMembershipType> getMembershipType()
-
withMembershipType
public Channel withMembershipType(ChannelMembershipType membershipType)
-
getSummary
public Optional<ChannelSummary> getSummary()
-
withSummary
public Channel withSummary(ChannelSummary summary)
-
withUnmappedField
public Channel withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getFilesFolder
public DriveItemRequest getFilesFolder()
-
getMembers
public ConversationMemberCollectionRequest getMembers()
-
getMessages
public ChatMessageCollectionRequest getMessages()
Org.OData.Capabilities.V1.ChangeTracking
Supported = true
- Returns:
- navigational property messages
-
getSharedWithTeams
public SharedWithChannelTeamInfoCollectionRequest getSharedWithTeams()
-
getTabs
public TeamsTabCollectionRequest getTabs()
-
withMembers
public Channel withMembers(List<ConversationMember> members)
-
withMessages
public Channel withMessages(List<ChatMessage> messages)
Returns an immutable copy ofthiswith just themessagesfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.Org.OData.Capabilities.V1.ChangeTracking
Supported = true
- Parameters:
messages- new value ofmessagesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themessagesfield changed
-
withSharedWithTeams
public Channel withSharedWithTeams(List<SharedWithChannelTeamInfo> sharedWithTeams)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public Channel patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public Channel put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
completeMigration
public com.github.davidmoten.odata.client.ActionRequestNoReturn completeMigration()
-
provisionEmail
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<ProvisionChannelEmailResult> provisionEmail()
-
removeEmail
public com.github.davidmoten.odata.client.ActionRequestNoReturn removeEmail()
-
doesUserHaveAccess
public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollection<Boolean> doesUserHaveAccess(String userId, String tenantId, String userPrincipalName)
-
-