Record Class InlineQueryResultGif
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InlineQueryResultGif
- All Implemented Interfaces:
Serializable,ApiResult,InlineQueryResult
public record InlineQueryResultGif(@NotNull String id, @NotNull String gifUrl, int gifWidth, int gifHeight, int gifDuration, @NotNull String thumbnailUrl, @Nullable String thumbnailMimeType, @Nullable String title, @Nullable String caption, @Nullable ParseMode parseMode, @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, @Nullable ReplyKeyboard replyMarkup, @Nullable InputMessageContent inputMessageContent)
extends Record
implements InlineQueryResult
- See Also:
-
Field Summary
Fields inherited from interface org.teleight.teleightbots.api.objects.InlineQueryResult
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInlineQueryResultGif(@NotNull String id, @NotNull String gifUrl, int gifWidth, int gifHeight, int gifDuration, @NotNull String thumbnailUrl, @Nullable String thumbnailMimeType, @Nullable String title, @Nullable String caption, @Nullable ParseMode parseMode, @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, @Nullable ReplyKeyboard replyMarkup, @Nullable InputMessageContent inputMessageContent) Creates an instance of aInlineQueryResultGifrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcaption()Returns the value of thecaptionrecord component.@Nullable MessageEntity[]Returns the value of thecaptionEntitiesrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegifDurationrecord component.intReturns the value of thegifHeightrecord component.@NotNull StringgifUrl()Returns the value of thegifUrlrecord component.intgifWidth()Returns the value of thegifWidthrecord component.final inthashCode()Returns a hash code value for this object.@NotNull Stringid()Returns the value of theidrecord component.@Nullable InputMessageContentReturns the value of theinputMessageContentrecord component.static @NotNull lombok.Builder@Nullable ParseModeReturns the value of theparseModerecord component.@Nullable ReplyKeyboardReturns the value of thereplyMarkuprecord component.booleanReturns the value of theshowCaptionAboveMediarecord component.@Nullable StringReturns the value of thethumbnailMimeTyperecord component.@NotNull StringReturns the value of thethumbnailUrlrecord component.@Nullable Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InlineQueryResultGif
public InlineQueryResultGif(@NotNull @NotNull String id, @NotNull @NotNull String gifUrl, int gifWidth, int gifHeight, int gifDuration, @NotNull @NotNull String thumbnailUrl, @Nullable @Nullable String thumbnailMimeType, @Nullable @Nullable String title, @Nullable @Nullable String caption, @Nullable @Nullable ParseMode parseMode, @Nullable @Nullable MessageEntity[] captionEntities, boolean showCaptionAboveMedia, @Nullable @Nullable ReplyKeyboard replyMarkup, @Nullable @Nullable InputMessageContent inputMessageContent) Creates an instance of aInlineQueryResultGifrecord class.- Parameters:
id- the value for theidrecord componentgifUrl- the value for thegifUrlrecord componentgifWidth- the value for thegifWidthrecord componentgifHeight- the value for thegifHeightrecord componentgifDuration- the value for thegifDurationrecord componentthumbnailUrl- the value for thethumbnailUrlrecord componentthumbnailMimeType- the value for thethumbnailMimeTyperecord componenttitle- the value for thetitlerecord componentcaption- the value for thecaptionrecord componentparseMode- the value for theparseModerecord componentcaptionEntities- the value for thecaptionEntitiesrecord componentshowCaptionAboveMedia- the value for theshowCaptionAboveMediarecord componentreplyMarkup- the value for thereplyMarkuprecord componentinputMessageContent- the value for theinputMessageContentrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
gifUrl
Returns the value of thegifUrlrecord component.- Returns:
- the value of the
gifUrlrecord component
-
gifWidth
public int gifWidth()Returns the value of thegifWidthrecord component.- Returns:
- the value of the
gifWidthrecord component
-
gifHeight
public int gifHeight()Returns the value of thegifHeightrecord component.- Returns:
- the value of the
gifHeightrecord component
-
gifDuration
public int gifDuration()Returns the value of thegifDurationrecord component.- Returns:
- the value of the
gifDurationrecord component
-
thumbnailUrl
Returns the value of thethumbnailUrlrecord component.- Returns:
- the value of the
thumbnailUrlrecord component
-
thumbnailMimeType
Returns the value of thethumbnailMimeTyperecord component.- Returns:
- the value of the
thumbnailMimeTyperecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-
parseMode
Returns the value of theparseModerecord component.- Returns:
- the value of the
parseModerecord component
-
captionEntities
Returns the value of thecaptionEntitiesrecord component.- Returns:
- the value of the
captionEntitiesrecord component
-
showCaptionAboveMedia
public boolean showCaptionAboveMedia()Returns the value of theshowCaptionAboveMediarecord component.- Returns:
- the value of the
showCaptionAboveMediarecord component
-
replyMarkup
Returns the value of thereplyMarkuprecord component.- Returns:
- the value of the
replyMarkuprecord component
-
inputMessageContent
Returns the value of theinputMessageContentrecord component.- Returns:
- the value of the
inputMessageContentrecord component
-