Record Class InlineKeyboardButton
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InlineKeyboardButton
- All Implemented Interfaces:
Serializable,ApiResult
public record InlineKeyboardButton(@NotNull String text, @Nullable String iconCustomEmojiId, @Nullable KeyboardButtonStyle style, @Nullable String url, @Nullable String callbackData, @Nullable WebAppInfo webApp, @Nullable LoginUrl loginUrl, @Nullable String switchInlineQuery, @Nullable String switchInlineQueryCurrentChat, @Nullable SwitchInlineQueryChosenChat switchInlineQueryChosenChat, @Nullable CopyTextButton copyText, @Nullable CallbackGame callbackGame, boolean pay, Menu destinationMenu, BiConsumer<ButtonPressEvent,User> callback)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInlineKeyboardButton(@NotNull String text, @Nullable String iconCustomEmojiId, @Nullable KeyboardButtonStyle style, @Nullable String url, @Nullable String callbackData, @Nullable WebAppInfo webApp, @Nullable LoginUrl loginUrl, @Nullable String switchInlineQuery, @Nullable String switchInlineQueryCurrentChat, @Nullable SwitchInlineQueryChosenChat switchInlineQueryChosenChat, @Nullable CopyTextButton copyText, @Nullable CallbackGame callbackGame, boolean pay, Menu destinationMenu, BiConsumer<ButtonPressEvent, User> callback) Creates an instance of aInlineKeyboardButtonrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallback()Returns the value of thecallbackrecord component.@Nullable StringReturns the value of thecallbackDatarecord component.@Nullable CallbackGameReturns the value of thecallbackGamerecord component.@Nullable CopyTextButtoncopyText()Returns the value of thecopyTextrecord component.Returns the value of thedestinationMenurecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theiconCustomEmojiIdrecord component.@Nullable LoginUrlloginUrl()Returns the value of theloginUrlrecord component.static @NotNull lombok.Builderbooleanpay()Returns the value of thepayrecord component.@Nullable KeyboardButtonStylestyle()Returns the value of thestylerecord component.@Nullable StringReturns the value of theswitchInlineQueryrecord component.@Nullable SwitchInlineQueryChosenChatReturns the value of theswitchInlineQueryChosenChatrecord component.@Nullable StringReturns the value of theswitchInlineQueryCurrentChatrecord component.@NotNull Stringtext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringurl()Returns the value of theurlrecord component.@Nullable WebAppInfowebApp()Returns the value of thewebApprecord component.
-
Constructor Details
-
Method Details
-
ofBuilder
-
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 '=='. -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
iconCustomEmojiId
Returns the value of theiconCustomEmojiIdrecord component.- Returns:
- the value of the
iconCustomEmojiIdrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
callbackData
Returns the value of thecallbackDatarecord component.- Returns:
- the value of the
callbackDatarecord component
-
webApp
Returns the value of thewebApprecord component.- Returns:
- the value of the
webApprecord component
-
loginUrl
Returns the value of theloginUrlrecord component.- Returns:
- the value of the
loginUrlrecord component
-
switchInlineQuery
Returns the value of theswitchInlineQueryrecord component.- Returns:
- the value of the
switchInlineQueryrecord component
-
switchInlineQueryCurrentChat
Returns the value of theswitchInlineQueryCurrentChatrecord component.- Returns:
- the value of the
switchInlineQueryCurrentChatrecord component
-
switchInlineQueryChosenChat
Returns the value of theswitchInlineQueryChosenChatrecord component.- Returns:
- the value of the
switchInlineQueryChosenChatrecord component
-
copyText
Returns the value of thecopyTextrecord component.- Returns:
- the value of the
copyTextrecord component
-
callbackGame
Returns the value of thecallbackGamerecord component.- Returns:
- the value of the
callbackGamerecord component
-
pay
public boolean pay()Returns the value of thepayrecord component.- Returns:
- the value of the
payrecord component
-
destinationMenu
Returns the value of thedestinationMenurecord component.- Returns:
- the value of the
destinationMenurecord component
-
callback
Returns the value of thecallbackrecord component.- Returns:
- the value of the
callbackrecord component
-