Record Class BotCommandScopeChatMember
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.BotCommandScopeChatMember
- All Implemented Interfaces:
Serializable,ApiResult,BotCommandScope
public record BotCommandScopeChatMember(@NotNull String chatId, int userId)
extends Record
implements BotCommandScope
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.BotCommandScope
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBotCommandScopeChatMember(@NotNull String chatId, int userId) Creates an instance of aBotCommandScopeChatMemberrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringchatId()Returns the value of thechatIdrecord 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.@NotNull Stringtype()intuserId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
BotCommandScopeChatMember
Creates an instance of aBotCommandScopeChatMemberrecord class.- Parameters:
chatId- the value for thechatIdrecord componentuserId- the value for theuserIdrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceBotCommandScope
-
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 '=='. -
chatId
Returns the value of thechatIdrecord component.- Returns:
- the value of the
chatIdrecord component
-
userId
public int userId()Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-