Record Class OwnedGiftUnique
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.OwnedGiftUnique
- All Implemented Interfaces:
Serializable, ApiResult, OwnedGift
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionOwnedGiftUnique(@NotNull UniqueGift gift, @Nullable String ownedGiftId, @Nullable User senderUser, @NotNull Date sendDate, boolean isSaved, boolean canBeTransferred, @Nullable Integer transferStarCount, @Nullable Date nextTransferDate) Creates an instance of aOwnedGiftUniquerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecanBeTransferredrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull UniqueGiftgift()Returns the value of thegiftrecord component.final inthashCode()Returns a hash code value for this object.booleanisSaved()Returns the value of theisSavedrecord component.@Nullable DateReturns the value of thenextTransferDaterecord component.@Nullable StringReturns the value of theownedGiftIdrecord component.@NotNull DatesendDate()Returns the value of thesendDaterecord component.@Nullable UserReturns the value of thesenderUserrecord component.final StringtoString()Returns a string representation of this record class.@Nullable IntegerReturns the value of thetransferStarCountrecord component.type()
-
Constructor Details
-
OwnedGiftUnique
public OwnedGiftUnique(@NotNull @NotNull UniqueGift gift, @Nullable @Nullable String ownedGiftId, @Nullable @Nullable User senderUser, @NotNull @NotNull Date sendDate, boolean isSaved, boolean canBeTransferred, @Nullable @Nullable Integer transferStarCount, @Nullable @Nullable Date nextTransferDate) Creates an instance of aOwnedGiftUniquerecord class.- Parameters:
gift- the value for thegiftrecord componentownedGiftId- the value for theownedGiftIdrecord componentsenderUser- the value for thesenderUserrecord componentsendDate- the value for thesendDaterecord componentisSaved- the value for theisSavedrecord componentcanBeTransferred- the value for thecanBeTransferredrecord componenttransferStarCount- the value for thetransferStarCountrecord componentnextTransferDate- the value for thenextTransferDaterecord component
-
-
Method Details
-
type
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
gift
Returns the value of thegiftrecord component.- Returns:
- the value of the
giftrecord component
-
ownedGiftId
Returns the value of theownedGiftIdrecord component.- Returns:
- the value of the
ownedGiftIdrecord component
-
senderUser
Returns the value of thesenderUserrecord component.- Returns:
- the value of the
senderUserrecord component
-
sendDate
Returns the value of thesendDaterecord component.- Returns:
- the value of the
sendDaterecord component
-
isSaved
public boolean isSaved()Returns the value of theisSavedrecord component.- Returns:
- the value of the
isSavedrecord component
-
canBeTransferred
public boolean canBeTransferred()Returns the value of thecanBeTransferredrecord component.- Returns:
- the value of the
canBeTransferredrecord component
-
transferStarCount
Returns the value of thetransferStarCountrecord component.- Returns:
- the value of the
transferStarCountrecord component
-
nextTransferDate
Returns the value of thenextTransferDaterecord component.- Returns:
- the value of the
nextTransferDaterecord component
-