Record Class ChatPermissions
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChatPermissions
- All Implemented Interfaces:
Serializable,ApiResult
public record ChatPermissions(boolean canSendMessages, boolean canSendAudios, boolean canSendDocuments, boolean canSendPhotos, boolean canSendVideos, boolean canSendVideoNotes, boolean canSendVoiceNotes, boolean canSendPolls, boolean canSendOtherMessages, boolean canAddWebPagePreviews, boolean canChangeInfo, boolean canInviteUsers, boolean canPinMessages, boolean canManageTopics)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChatPermissions(boolean canSendMessages, boolean canSendAudios, boolean canSendDocuments, boolean canSendPhotos, boolean canSendVideos, boolean canSendVideoNotes, boolean canSendVoiceNotes, boolean canSendPolls, boolean canSendOtherMessages, boolean canAddWebPagePreviews, boolean canChangeInfo, boolean canInviteUsers, boolean canPinMessages, boolean canManageTopics) Creates an instance of aChatPermissionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecanAddWebPagePreviewsrecord component.booleanReturns the value of thecanChangeInforecord component.booleanReturns the value of thecanInviteUsersrecord component.booleanReturns the value of thecanManageTopicsrecord component.booleanReturns the value of thecanPinMessagesrecord component.booleanReturns the value of thecanSendAudiosrecord component.booleanReturns the value of thecanSendDocumentsrecord component.booleanReturns the value of thecanSendMessagesrecord component.booleanReturns the value of thecanSendOtherMessagesrecord component.booleanReturns the value of thecanSendPhotosrecord component.booleanReturns the value of thecanSendPollsrecord component.booleanReturns the value of thecanSendVideoNotesrecord component.booleanReturns the value of thecanSendVideosrecord component.booleanReturns the value of thecanSendVoiceNotesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChatPermissions
public ChatPermissions(boolean canSendMessages, boolean canSendAudios, boolean canSendDocuments, boolean canSendPhotos, boolean canSendVideos, boolean canSendVideoNotes, boolean canSendVoiceNotes, boolean canSendPolls, boolean canSendOtherMessages, boolean canAddWebPagePreviews, boolean canChangeInfo, boolean canInviteUsers, boolean canPinMessages, boolean canManageTopics) Creates an instance of aChatPermissionsrecord class.- Parameters:
canSendMessages- the value for thecanSendMessagesrecord componentcanSendAudios- the value for thecanSendAudiosrecord componentcanSendDocuments- the value for thecanSendDocumentsrecord componentcanSendPhotos- the value for thecanSendPhotosrecord componentcanSendVideos- the value for thecanSendVideosrecord componentcanSendVideoNotes- the value for thecanSendVideoNotesrecord componentcanSendVoiceNotes- the value for thecanSendVoiceNotesrecord componentcanSendPolls- the value for thecanSendPollsrecord componentcanSendOtherMessages- the value for thecanSendOtherMessagesrecord componentcanAddWebPagePreviews- the value for thecanAddWebPagePreviewsrecord componentcanChangeInfo- the value for thecanChangeInforecord componentcanInviteUsers- the value for thecanInviteUsersrecord componentcanPinMessages- the value for thecanPinMessagesrecord componentcanManageTopics- the value for thecanManageTopicsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
canSendMessages
public boolean canSendMessages()Returns the value of thecanSendMessagesrecord component.- Returns:
- the value of the
canSendMessagesrecord component
-
canSendAudios
public boolean canSendAudios()Returns the value of thecanSendAudiosrecord component.- Returns:
- the value of the
canSendAudiosrecord component
-
canSendDocuments
public boolean canSendDocuments()Returns the value of thecanSendDocumentsrecord component.- Returns:
- the value of the
canSendDocumentsrecord component
-
canSendPhotos
public boolean canSendPhotos()Returns the value of thecanSendPhotosrecord component.- Returns:
- the value of the
canSendPhotosrecord component
-
canSendVideos
public boolean canSendVideos()Returns the value of thecanSendVideosrecord component.- Returns:
- the value of the
canSendVideosrecord component
-
canSendVideoNotes
public boolean canSendVideoNotes()Returns the value of thecanSendVideoNotesrecord component.- Returns:
- the value of the
canSendVideoNotesrecord component
-
canSendVoiceNotes
public boolean canSendVoiceNotes()Returns the value of thecanSendVoiceNotesrecord component.- Returns:
- the value of the
canSendVoiceNotesrecord component
-
canSendPolls
public boolean canSendPolls()Returns the value of thecanSendPollsrecord component.- Returns:
- the value of the
canSendPollsrecord component
-
canSendOtherMessages
public boolean canSendOtherMessages()Returns the value of thecanSendOtherMessagesrecord component.- Returns:
- the value of the
canSendOtherMessagesrecord component
-
canAddWebPagePreviews
public boolean canAddWebPagePreviews()Returns the value of thecanAddWebPagePreviewsrecord component.- Returns:
- the value of the
canAddWebPagePreviewsrecord component
-
canChangeInfo
public boolean canChangeInfo()Returns the value of thecanChangeInforecord component.- Returns:
- the value of the
canChangeInforecord component
-
canInviteUsers
public boolean canInviteUsers()Returns the value of thecanInviteUsersrecord component.- Returns:
- the value of the
canInviteUsersrecord component
-
canPinMessages
public boolean canPinMessages()Returns the value of thecanPinMessagesrecord component.- Returns:
- the value of the
canPinMessagesrecord component
-
canManageTopics
public boolean canManageTopics()Returns the value of thecanManageTopicsrecord component.- Returns:
- the value of the
canManageTopicsrecord component
-