Record Class BusinessBotRights
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.BusinessBotRights
- All Implemented Interfaces:
Serializable,ApiResult
public record BusinessBotRights(boolean canReply, boolean canReadMessages, boolean canDeleteOutgoingMessages, boolean canDeleteAllMessages, boolean canEditName, boolean canEditBio, boolean canEditProfilePhoto, boolean canEditUsername, boolean canChangeGiftSettings, boolean canViewGiftsAndStars, boolean canConvertGiftsToStars, boolean canTransferAndUpgradeGifts, boolean canTransferStars, boolean canManageStories)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBusinessBotRights(boolean canReply, boolean canReadMessages, boolean canDeleteOutgoingMessages, boolean canDeleteAllMessages, boolean canEditName, boolean canEditBio, boolean canEditProfilePhoto, boolean canEditUsername, boolean canChangeGiftSettings, boolean canViewGiftsAndStars, boolean canConvertGiftsToStars, boolean canTransferAndUpgradeGifts, boolean canTransferStars, boolean canManageStories) Creates an instance of aBusinessBotRightsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecanChangeGiftSettingsrecord component.booleanReturns the value of thecanConvertGiftsToStarsrecord component.booleanReturns the value of thecanDeleteAllMessagesrecord component.booleanReturns the value of thecanDeleteOutgoingMessagesrecord component.booleanReturns the value of thecanEditBiorecord component.booleanReturns the value of thecanEditNamerecord component.booleanReturns the value of thecanEditProfilePhotorecord component.booleanReturns the value of thecanEditUsernamerecord component.booleanReturns the value of thecanManageStoriesrecord component.booleanReturns the value of thecanReadMessagesrecord component.booleancanReply()Returns the value of thecanReplyrecord component.booleanReturns the value of thecanTransferAndUpgradeGiftsrecord component.booleanReturns the value of thecanTransferStarsrecord component.booleanReturns the value of thecanViewGiftsAndStarsrecord 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
-
BusinessBotRights
public BusinessBotRights(boolean canReply, boolean canReadMessages, boolean canDeleteOutgoingMessages, boolean canDeleteAllMessages, boolean canEditName, boolean canEditBio, boolean canEditProfilePhoto, boolean canEditUsername, boolean canChangeGiftSettings, boolean canViewGiftsAndStars, boolean canConvertGiftsToStars, boolean canTransferAndUpgradeGifts, boolean canTransferStars, boolean canManageStories) Creates an instance of aBusinessBotRightsrecord class.- Parameters:
canReply- the value for thecanReplyrecord componentcanReadMessages- the value for thecanReadMessagesrecord componentcanDeleteOutgoingMessages- the value for thecanDeleteOutgoingMessagesrecord componentcanDeleteAllMessages- the value for thecanDeleteAllMessagesrecord componentcanEditName- the value for thecanEditNamerecord componentcanEditBio- the value for thecanEditBiorecord componentcanEditProfilePhoto- the value for thecanEditProfilePhotorecord componentcanEditUsername- the value for thecanEditUsernamerecord componentcanChangeGiftSettings- the value for thecanChangeGiftSettingsrecord componentcanViewGiftsAndStars- the value for thecanViewGiftsAndStarsrecord componentcanConvertGiftsToStars- the value for thecanConvertGiftsToStarsrecord componentcanTransferAndUpgradeGifts- the value for thecanTransferAndUpgradeGiftsrecord componentcanTransferStars- the value for thecanTransferStarsrecord componentcanManageStories- the value for thecanManageStoriesrecord 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 '=='. -
canReply
public boolean canReply()Returns the value of thecanReplyrecord component.- Returns:
- the value of the
canReplyrecord component
-
canReadMessages
public boolean canReadMessages()Returns the value of thecanReadMessagesrecord component.- Returns:
- the value of the
canReadMessagesrecord component
-
canDeleteOutgoingMessages
public boolean canDeleteOutgoingMessages()Returns the value of thecanDeleteOutgoingMessagesrecord component.- Returns:
- the value of the
canDeleteOutgoingMessagesrecord component
-
canDeleteAllMessages
public boolean canDeleteAllMessages()Returns the value of thecanDeleteAllMessagesrecord component.- Returns:
- the value of the
canDeleteAllMessagesrecord component
-
canEditName
public boolean canEditName()Returns the value of thecanEditNamerecord component.- Returns:
- the value of the
canEditNamerecord component
-
canEditBio
public boolean canEditBio()Returns the value of thecanEditBiorecord component.- Returns:
- the value of the
canEditBiorecord component
-
canEditProfilePhoto
public boolean canEditProfilePhoto()Returns the value of thecanEditProfilePhotorecord component.- Returns:
- the value of the
canEditProfilePhotorecord component
-
canEditUsername
public boolean canEditUsername()Returns the value of thecanEditUsernamerecord component.- Returns:
- the value of the
canEditUsernamerecord component
-
canChangeGiftSettings
public boolean canChangeGiftSettings()Returns the value of thecanChangeGiftSettingsrecord component.- Returns:
- the value of the
canChangeGiftSettingsrecord component
-
canViewGiftsAndStars
public boolean canViewGiftsAndStars()Returns the value of thecanViewGiftsAndStarsrecord component.- Returns:
- the value of the
canViewGiftsAndStarsrecord component
-
canConvertGiftsToStars
public boolean canConvertGiftsToStars()Returns the value of thecanConvertGiftsToStarsrecord component.- Returns:
- the value of the
canConvertGiftsToStarsrecord component
-
canTransferAndUpgradeGifts
public boolean canTransferAndUpgradeGifts()Returns the value of thecanTransferAndUpgradeGiftsrecord component.- Returns:
- the value of the
canTransferAndUpgradeGiftsrecord component
-
canTransferStars
public boolean canTransferStars()Returns the value of thecanTransferStarsrecord component.- Returns:
- the value of the
canTransferStarsrecord component
-
canManageStories
public boolean canManageStories()Returns the value of thecanManageStoriesrecord component.- Returns:
- the value of the
canManageStoriesrecord component
-