Record Class InputMediaSticker
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputMediaSticker
- All Implemented Interfaces:
Serializable, ApiResult, InputPollOptionMedia
public record InputMediaSticker(@NotNull InputFile media, @Nullable String emoji)
extends Record
implements InputPollOptionMedia
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface InputPollOptionMedia
TYPE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionInputMediaSticker(@NotNull InputFile media, @Nullable String emoji) Creates an instance of aInputMediaStickerrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringemoji()Returns the value of theemojirecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull InputFilemedia()Returns the value of themediarecord component.static @NotNull InputMediaSticker.Builderfinal StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
InputMediaSticker
-
-
Method Details
-
ofBuilder
-
type
- Specified by:
typein interfaceInputPollOptionMedia
-
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). -
media
Returns the value of themediarecord component.- Returns:
- the value of the
mediarecord component
-
emoji
Returns the value of theemojirecord component.- Returns:
- the value of the
emojirecord component
-