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
ConstructorsConstructorDescriptionKeyboardButtonRequestChat(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 aKeyboardButtonRequestChatrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ChatAdministratorRightsReturns the value of thebotAdministratorRightsrecord component.booleanReturns the value of thebotIsMemberrecord component.booleanReturns the value of thechatHasUsernamerecord component.booleanReturns the value of thechatIsChannelrecord component.booleanReturns the value of thechatIsCreatedrecord component.booleanReturns the value of thechatIsForumrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of therequestIdrecord component.booleanReturns the value of therequestPhotorecord component.booleanReturns the value of therequestTitlerecord component.booleanReturns the value of therequestUsernamerecord component.final StringtoString()Returns a string representation of this record class.@Nullable ChatAdministratorRightsReturns the value of theuserAdministratorRightsrecord component.
-
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 aKeyboardButtonRequestChatrecord class.- Parameters:
requestId- the value for therequestIdrecord componentchatIsChannel- the value for thechatIsChannelrecord componentchatIsForum- the value for thechatIsForumrecord componentchatHasUsername- the value for thechatHasUsernamerecord componentchatIsCreated- the value for thechatIsCreatedrecord componentuserAdministratorRights- the value for theuserAdministratorRightsrecord componentbotAdministratorRights- the value for thebotAdministratorRightsrecord componentbotIsMember- the value for thebotIsMemberrecord componentrequestTitle- the value for therequestTitlerecord componentrequestUsername- the value for therequestUsernamerecord componentrequestPhoto- the value for therequestPhotorecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
requestId
public int requestId()Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
chatIsChannel
public boolean chatIsChannel()Returns the value of thechatIsChannelrecord component.- Returns:
- the value of the
chatIsChannelrecord component
-
chatIsForum
public boolean chatIsForum()Returns the value of thechatIsForumrecord component.- Returns:
- the value of the
chatIsForumrecord component
-
chatHasUsername
public boolean chatHasUsername()Returns the value of thechatHasUsernamerecord component.- Returns:
- the value of the
chatHasUsernamerecord component
-
chatIsCreated
public boolean chatIsCreated()Returns the value of thechatIsCreatedrecord component.- Returns:
- the value of the
chatIsCreatedrecord component
-
userAdministratorRights
Returns the value of theuserAdministratorRightsrecord component.- Returns:
- the value of the
userAdministratorRightsrecord component
-
botAdministratorRights
Returns the value of thebotAdministratorRightsrecord component.- Returns:
- the value of the
botAdministratorRightsrecord component
-
botIsMember
public boolean botIsMember()Returns the value of thebotIsMemberrecord component.- Returns:
- the value of the
botIsMemberrecord component
-
requestTitle
public boolean requestTitle()Returns the value of therequestTitlerecord component.- Returns:
- the value of the
requestTitlerecord component
-
requestUsername
public boolean requestUsername()Returns the value of therequestUsernamerecord component.- Returns:
- the value of the
requestUsernamerecord component
-
requestPhoto
public boolean requestPhoto()Returns the value of therequestPhotorecord component.- Returns:
- the value of the
requestPhotorecord component
-