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

    Constructors
    Constructor
    Description
    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 a BusinessBotRights record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the value of the canChangeGiftSettings record component.
    boolean
    Returns the value of the canConvertGiftsToStars record component.
    boolean
    Returns the value of the canDeleteAllMessages record component.
    boolean
    Returns the value of the canDeleteOutgoingMessages record component.
    boolean
    Returns the value of the canEditBio record component.
    boolean
    Returns the value of the canEditName record component.
    boolean
    Returns the value of the canEditProfilePhoto record component.
    boolean
    Returns the value of the canEditUsername record component.
    boolean
    Returns the value of the canManageStories record component.
    boolean
    Returns the value of the canReadMessages record component.
    boolean
    Returns the value of the canReply record component.
    boolean
    Returns the value of the canTransferAndUpgradeGifts record component.
    boolean
    Returns the value of the canTransferStars record component.
    boolean
    Returns the value of the canViewGiftsAndStars record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a BusinessBotRights record class.
      Parameters:
      canReply - the value for the canReply record component
      canReadMessages - the value for the canReadMessages record component
      canDeleteOutgoingMessages - the value for the canDeleteOutgoingMessages record component
      canDeleteAllMessages - the value for the canDeleteAllMessages record component
      canEditName - the value for the canEditName record component
      canEditBio - the value for the canEditBio record component
      canEditProfilePhoto - the value for the canEditProfilePhoto record component
      canEditUsername - the value for the canEditUsername record component
      canChangeGiftSettings - the value for the canChangeGiftSettings record component
      canViewGiftsAndStars - the value for the canViewGiftsAndStars record component
      canConvertGiftsToStars - the value for the canConvertGiftsToStars record component
      canTransferAndUpgradeGifts - the value for the canTransferAndUpgradeGifts record component
      canTransferStars - the value for the canTransferStars record component
      canManageStories - the value for the canManageStories record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • canReply

      public boolean canReply()
      Returns the value of the canReply record component.
      Returns:
      the value of the canReply record component
    • canReadMessages

      public boolean canReadMessages()
      Returns the value of the canReadMessages record component.
      Returns:
      the value of the canReadMessages record component
    • canDeleteOutgoingMessages

      public boolean canDeleteOutgoingMessages()
      Returns the value of the canDeleteOutgoingMessages record component.
      Returns:
      the value of the canDeleteOutgoingMessages record component
    • canDeleteAllMessages

      public boolean canDeleteAllMessages()
      Returns the value of the canDeleteAllMessages record component.
      Returns:
      the value of the canDeleteAllMessages record component
    • canEditName

      public boolean canEditName()
      Returns the value of the canEditName record component.
      Returns:
      the value of the canEditName record component
    • canEditBio

      public boolean canEditBio()
      Returns the value of the canEditBio record component.
      Returns:
      the value of the canEditBio record component
    • canEditProfilePhoto

      public boolean canEditProfilePhoto()
      Returns the value of the canEditProfilePhoto record component.
      Returns:
      the value of the canEditProfilePhoto record component
    • canEditUsername

      public boolean canEditUsername()
      Returns the value of the canEditUsername record component.
      Returns:
      the value of the canEditUsername record component
    • canChangeGiftSettings

      public boolean canChangeGiftSettings()
      Returns the value of the canChangeGiftSettings record component.
      Returns:
      the value of the canChangeGiftSettings record component
    • canViewGiftsAndStars

      public boolean canViewGiftsAndStars()
      Returns the value of the canViewGiftsAndStars record component.
      Returns:
      the value of the canViewGiftsAndStars record component
    • canConvertGiftsToStars

      public boolean canConvertGiftsToStars()
      Returns the value of the canConvertGiftsToStars record component.
      Returns:
      the value of the canConvertGiftsToStars record component
    • canTransferAndUpgradeGifts

      public boolean canTransferAndUpgradeGifts()
      Returns the value of the canTransferAndUpgradeGifts record component.
      Returns:
      the value of the canTransferAndUpgradeGifts record component
    • canTransferStars

      public boolean canTransferStars()
      Returns the value of the canTransferStars record component.
      Returns:
      the value of the canTransferStars record component
    • canManageStories

      public boolean canManageStories()
      Returns the value of the canManageStories record component.
      Returns:
      the value of the canManageStories record component