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:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.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 lombok.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
-
type
- Specified by:
typein interfaceInlineQueryResult
-
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. 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
-