Record Class KeyboardButtonRequestChat

java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.KeyboardButtonRequestChat
All Implemented Interfaces:
Serializable, ApiResult

public record KeyboardButtonRequestChat(int requestId, boolean chatIsChannel, boolean chatIsForum, boolean chatHasUsername, boolean chatIsCreated, @Nullable ChatAdministratorRights userAdministratorRights, @Nullable ChatAdministratorRights botAdministratorRights, boolean botIsMember, boolean requestTitle, boolean requestUsername, boolean requestPhoto) extends Record implements ApiResult
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeyboardButtonRequestChat(int requestId, boolean chatIsChannel, boolean chatIsForum, boolean chatHasUsername, boolean chatIsCreated, @Nullable ChatAdministratorRights userAdministratorRights, @Nullable ChatAdministratorRights botAdministratorRights, boolean botIsMember, boolean requestTitle, boolean requestUsername, boolean requestPhoto)
    Creates an instance of a KeyboardButtonRequestChat record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the botAdministratorRights record component.
    boolean
    Returns the value of the botIsMember record component.
    boolean
    Returns the value of the chatHasUsername record component.
    boolean
    Returns the value of the chatIsChannel record component.
    boolean
    Returns the value of the chatIsCreated record component.
    boolean
    Returns the value of the chatIsForum record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the requestId record component.
    boolean
    Returns the value of the requestPhoto record component.
    boolean
    Returns the value of the requestTitle record component.
    boolean
    Returns the value of the requestUsername record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the userAdministratorRights record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • KeyboardButtonRequestChat

      public KeyboardButtonRequestChat(int requestId, boolean chatIsChannel, boolean chatIsForum, boolean chatHasUsername, boolean chatIsCreated, @Nullable @Nullable ChatAdministratorRights userAdministratorRights, @Nullable @Nullable ChatAdministratorRights botAdministratorRights, boolean botIsMember, boolean requestTitle, boolean requestUsername, boolean requestPhoto)
      Creates an instance of a KeyboardButtonRequestChat record class.
      Parameters:
      requestId - the value for the requestId record component
      chatIsChannel - the value for the chatIsChannel record component
      chatIsForum - the value for the chatIsForum record component
      chatHasUsername - the value for the chatHasUsername record component
      chatIsCreated - the value for the chatIsCreated record component
      userAdministratorRights - the value for the userAdministratorRights record component
      botAdministratorRights - the value for the botAdministratorRights record component
      botIsMember - the value for the botIsMember record component
      requestTitle - the value for the requestTitle record component
      requestUsername - the value for the requestUsername record component
      requestPhoto - the value for the requestPhoto 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • requestId

      public int requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component
    • chatIsChannel

      public boolean chatIsChannel()
      Returns the value of the chatIsChannel record component.
      Returns:
      the value of the chatIsChannel record component
    • chatIsForum

      public boolean chatIsForum()
      Returns the value of the chatIsForum record component.
      Returns:
      the value of the chatIsForum record component
    • chatHasUsername

      public boolean chatHasUsername()
      Returns the value of the chatHasUsername record component.
      Returns:
      the value of the chatHasUsername record component
    • chatIsCreated

      public boolean chatIsCreated()
      Returns the value of the chatIsCreated record component.
      Returns:
      the value of the chatIsCreated record component
    • userAdministratorRights

      @Nullable public @Nullable ChatAdministratorRights userAdministratorRights()
      Returns the value of the userAdministratorRights record component.
      Returns:
      the value of the userAdministratorRights record component
    • botAdministratorRights

      @Nullable public @Nullable ChatAdministratorRights botAdministratorRights()
      Returns the value of the botAdministratorRights record component.
      Returns:
      the value of the botAdministratorRights record component
    • botIsMember

      public boolean botIsMember()
      Returns the value of the botIsMember record component.
      Returns:
      the value of the botIsMember record component
    • requestTitle

      public boolean requestTitle()
      Returns the value of the requestTitle record component.
      Returns:
      the value of the requestTitle record component
    • requestUsername

      public boolean requestUsername()
      Returns the value of the requestUsername record component.
      Returns:
      the value of the requestUsername record component
    • requestPhoto

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