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
ConstructorsConstructorDescriptionUniqueGift(@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 aUniqueGiftrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull UniqueGiftBackdropbackdrop()Returns the value of thebackdroprecord component.@NotNull StringbaseName()Returns the value of thebaseNamerecord component.@Nullable UniqueGiftColorscolors()Returns the value of thecolorsrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull StringgiftId()Returns the value of thegiftIdrecord component.final inthashCode()Returns a hash code value for this object.booleanisBurned()Returns the value of theisBurnedrecord component.booleanReturns the value of theisFromBlockchainrecord component.booleanReturns the value of theisPremiumrecord component.@NotNull UniqueGiftModelmodel()Returns the value of themodelrecord component.@NotNull Stringname()Returns the value of thenamerecord component.intnumber()Returns the value of thenumberrecord component.@Nullable ChatReturns the value of thepublisherChatrecord component.@NotNull UniqueGiftSymbolsymbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aUniqueGiftrecord class.- Parameters:
giftId- the value for thegiftIdrecord componentbaseName- the value for thebaseNamerecord componentname- the value for thenamerecord componentnumber- the value for thenumberrecord componentmodel- the value for themodelrecord componentsymbol- the value for thesymbolrecord componentbackdrop- the value for thebackdroprecord componentisPremium- the value for theisPremiumrecord componentisBurned- the value for theisBurnedrecord componentisFromBlockchain- the value for theisFromBlockchainrecord componentcolors- the value for thecolorsrecord componentpublisherChat- the value for thepublisherChatrecord component
-
-
Method Details
-
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 '=='. -
giftId
Returns the value of thegiftIdrecord component.- Returns:
- the value of the
giftIdrecord component
-
baseName
Returns the value of thebaseNamerecord component.- Returns:
- the value of the
baseNamerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
number
public int number()Returns the value of thenumberrecord component.- Returns:
- the value of the
numberrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-
backdrop
Returns the value of thebackdroprecord component.- Returns:
- the value of the
backdroprecord component
-
isPremium
public boolean isPremium()Returns the value of theisPremiumrecord component.- Returns:
- the value of the
isPremiumrecord component
-
isBurned
public boolean isBurned()Returns the value of theisBurnedrecord component.- Returns:
- the value of the
isBurnedrecord component
-
isFromBlockchain
public boolean isFromBlockchain()Returns the value of theisFromBlockchainrecord component.- Returns:
- the value of the
isFromBlockchainrecord component
-
colors
Returns the value of thecolorsrecord component.- Returns:
- the value of the
colorsrecord component
-
publisherChat
Returns the value of thepublisherChatrecord component.- Returns:
- the value of the
publisherChatrecord component
-