Record Class InlineQueryResultGame
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InlineQueryResultGame
- All Implemented Interfaces:
Serializable, ApiResult, InlineQueryResult
public record InlineQueryResultGame(@NotNull String id, @NotNull String gameShortName, @Nullable ReplyKeyboard replyMarkup)
extends Record
implements InlineQueryResult
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface InlineQueryResult
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultGame(@NotNull String id, @NotNull String gameShortName, @Nullable ReplyKeyboard replyMarkup) Creates an instance of aInlineQueryResultGamerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull StringReturns the value of thegameShortNamerecord component.final inthashCode()Returns a hash code value for this object.@NotNull Stringid()Returns the value of theidrecord component.static @NotNull InlineQueryResultGame.Builder@Nullable ReplyKeyboardReturns the value of thereplyMarkuprecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InlineQueryResultGame
public InlineQueryResultGame(@NotNull @NotNull String id, @NotNull @NotNull String gameShortName, @Nullable @Nullable ReplyKeyboard replyMarkup) Creates an instance of aInlineQueryResultGamerecord class.- Parameters:
id- the value for theidrecord componentgameShortName- the value for thegameShortNamerecord componentreplyMarkup- the value for thereplyMarkuprecord component
-
-
Method Details
-
ofBuilder
@NotNull public static @NotNull InlineQueryResultGame.Builder ofBuilder(String id, String gameShortName) -
type
- Specified by:
typein interfaceInlineQueryResult
-
toBuilder
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
gameShortName
Returns the value of thegameShortNamerecord component.- Returns:
- the value of the
gameShortNamerecord component
-
replyMarkup
Returns the value of thereplyMarkuprecord component.- Returns:
- the value of the
replyMarkuprecord component
-