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 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
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
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
-