Record Class InputSticker
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputSticker
- All Implemented Interfaces:
Serializable,ApiResult
public record InputSticker(@NotNull InputFile sticker, @NotNull StickerFormat format, @Nullable String[] emojiList, @Nullable MaskPosition maskPosition, @Nullable String[] keywords)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputSticker(@NotNull InputFile sticker, @NotNull StickerFormat format, @Nullable String[] emojiList, @Nullable MaskPosition maskPosition, @Nullable String[] keywords) Creates an instance of aInputStickerrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable String[]Returns the value of theemojiListrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull StickerFormatformat()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.@Nullable String[]keywords()Returns the value of thekeywordsrecord component.@Nullable MaskPositionReturns the value of themaskPositionrecord component.static @NotNull lombok.BuilderofBuilder(InputFile sticker, StickerFormat format) @NotNull InputFilesticker()Returns the value of thestickerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputSticker
public InputSticker(@NotNull @NotNull InputFile sticker, @NotNull @NotNull StickerFormat format, @Nullable @Nullable String[] emojiList, @Nullable @Nullable MaskPosition maskPosition, @Nullable @Nullable String[] keywords) Creates an instance of aInputStickerrecord class.- Parameters:
sticker- the value for thestickerrecord componentformat- the value for theformatrecord componentemojiList- the value for theemojiListrecord componentmaskPosition- the value for themaskPositionrecord componentkeywords- the value for thekeywordsrecord component
-
-
Method Details
-
ofBuilder
-
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). -
sticker
Returns the value of thestickerrecord component.- Returns:
- the value of the
stickerrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
emojiList
Returns the value of theemojiListrecord component.- Returns:
- the value of the
emojiListrecord component
-
maskPosition
Returns the value of themaskPositionrecord component.- Returns:
- the value of the
maskPositionrecord component
-
keywords
Returns the value of thekeywordsrecord component.- Returns:
- the value of the
keywordsrecord component
-