Record Class UniqueGift

java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.UniqueGift
All Implemented Interfaces:
Serializable, ApiResult

public record UniqueGift(@NotNull String giftId, @NotNull String baseName, @NotNull String name, int number, @NotNull UniqueGiftModel model, @NotNull UniqueGiftSymbol symbol, @NotNull UniqueGiftBackdrop backdrop, boolean isPremium, boolean isBurned, boolean isFromBlockchain, @Nullable UniqueGiftColors colors, @Nullable Chat publisherChat) extends Record implements ApiResult
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    UniqueGift(@NotNull String giftId, @NotNull String baseName, @NotNull String name, int number, @NotNull UniqueGiftModel model, @NotNull UniqueGiftSymbol symbol, @NotNull UniqueGiftBackdrop backdrop, boolean isPremium, boolean isBurned, boolean isFromBlockchain, @Nullable UniqueGiftColors colors, @Nullable Chat publisherChat)
    Creates an instance of a UniqueGift record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the backdrop record component.
    @NotNull String
    Returns the value of the baseName record component.
    Returns the value of the colors record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull String
    Returns the value of the giftId record component.
    final int
    Returns a hash code value for this object.
    boolean
    Returns the value of the isBurned record component.
    boolean
    Returns the value of the isFromBlockchain record component.
    boolean
    Returns the value of the isPremium record component.
    Returns the value of the model record component.
    @NotNull String
    Returns the value of the name record component.
    int
    Returns the value of the number record component.
    @Nullable Chat
    Returns the value of the publisherChat record component.
    Returns the value of the symbol record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • UniqueGift

      public UniqueGift(@NotNull @NotNull String giftId, @NotNull @NotNull String baseName, @NotNull @NotNull String name, int number, @NotNull @NotNull UniqueGiftModel model, @NotNull @NotNull UniqueGiftSymbol symbol, @NotNull @NotNull UniqueGiftBackdrop backdrop, boolean isPremium, boolean isBurned, boolean isFromBlockchain, @Nullable @Nullable UniqueGiftColors colors, @Nullable @Nullable Chat publisherChat)
      Creates an instance of a UniqueGift record class.
      Parameters:
      giftId - the value for the giftId record component
      baseName - the value for the baseName record component
      name - the value for the name record component
      number - the value for the number record component
      model - the value for the model record component
      symbol - the value for the symbol record component
      backdrop - the value for the backdrop record component
      isPremium - the value for the isPremium record component
      isBurned - the value for the isBurned record component
      isFromBlockchain - the value for the isFromBlockchain record component
      colors - the value for the colors record component
      publisherChat - the value for the publisherChat record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • giftId

      @NotNull public @NotNull String giftId()
      Returns the value of the giftId record component.
      Returns:
      the value of the giftId record component
    • baseName

      @NotNull public @NotNull String baseName()
      Returns the value of the baseName record component.
      Returns:
      the value of the baseName record component
    • name

      @NotNull public @NotNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • number

      public int number()
      Returns the value of the number record component.
      Returns:
      the value of the number record component
    • model

      @NotNull public @NotNull UniqueGiftModel model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • symbol

      @NotNull public @NotNull UniqueGiftSymbol symbol()
      Returns the value of the symbol record component.
      Returns:
      the value of the symbol record component
    • backdrop

      @NotNull public @NotNull UniqueGiftBackdrop backdrop()
      Returns the value of the backdrop record component.
      Returns:
      the value of the backdrop record component
    • isPremium

      public boolean isPremium()
      Returns the value of the isPremium record component.
      Returns:
      the value of the isPremium record component
    • isBurned

      public boolean isBurned()
      Returns the value of the isBurned record component.
      Returns:
      the value of the isBurned record component
    • isFromBlockchain

      public boolean isFromBlockchain()
      Returns the value of the isFromBlockchain record component.
      Returns:
      the value of the isFromBlockchain record component
    • colors

      @Nullable public @Nullable UniqueGiftColors colors()
      Returns the value of the colors record component.
      Returns:
      the value of the colors record component
    • publisherChat

      @Nullable public @Nullable Chat publisherChat()
      Returns the value of the publisherChat record component.
      Returns:
      the value of the publisherChat record component