Record Class InlineQueryResultAudio
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InlineQueryResultAudio
- All Implemented Interfaces:
Serializable,ApiResult,InlineQueryResult
public record InlineQueryResultAudio(@NotNull String id, @NotNull String audioUrl, @NotNull String title, @Nullable String caption, @Nullable ParseMode parseMode, @Nullable MessageEntity[] captionEntities, @Nullable String performer, int audioDuration, @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
ConstructorsConstructorDescriptionInlineQueryResultAudio(@NotNull String id, @NotNull String audioUrl, @NotNull String title, @Nullable String caption, @Nullable ParseMode parseMode, @Nullable MessageEntity[] captionEntities, @Nullable String performer, int audioDuration, @Nullable ReplyKeyboard replyMarkup, @Nullable InputMessageContent inputMessageContent) Creates an instance of aInlineQueryResultAudiorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaudioDurationrecord component.@NotNull StringaudioUrl()Returns the value of theaudioUrlrecord component.@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.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 StringReturns the value of theperformerrecord component.@Nullable ReplyKeyboardReturns the value of thereplyMarkuprecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InlineQueryResultAudio
public InlineQueryResultAudio(@NotNull @NotNull String id, @NotNull @NotNull String audioUrl, @NotNull @NotNull String title, @Nullable @Nullable String caption, @Nullable @Nullable ParseMode parseMode, @Nullable @Nullable MessageEntity[] captionEntities, @Nullable @Nullable String performer, int audioDuration, @Nullable @Nullable ReplyKeyboard replyMarkup, @Nullable @Nullable InputMessageContent inputMessageContent) Creates an instance of aInlineQueryResultAudiorecord class.- Parameters:
id- the value for theidrecord componentaudioUrl- the value for theaudioUrlrecord componenttitle- the value for thetitlerecord componentcaption- the value for thecaptionrecord componentparseMode- the value for theparseModerecord componentcaptionEntities- the value for thecaptionEntitiesrecord componentperformer- the value for theperformerrecord componentaudioDuration- the value for theaudioDurationrecord 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
-
audioUrl
Returns the value of theaudioUrlrecord component.- Returns:
- the value of the
audioUrlrecord 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
-
performer
Returns the value of theperformerrecord component.- Returns:
- the value of the
performerrecord component
-
audioDuration
public int audioDuration()Returns the value of theaudioDurationrecord component.- Returns:
- the value of the
audioDurationrecord 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
-