Record Class AcceptedGiftTypes
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.AcceptedGiftTypes
- All Implemented Interfaces:
Serializable,ApiResult
public record AcceptedGiftTypes(boolean unlimitedGifts, boolean limitedGifts, boolean uniqueGifts, boolean premiumSubscription, boolean giftsFromChannels)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAcceptedGiftTypes(boolean unlimitedGifts, boolean limitedGifts, boolean uniqueGifts, boolean premiumSubscription, boolean giftsFromChannels) Creates an instance of aAcceptedGiftTypesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegiftsFromChannelsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thelimitedGiftsrecord component.booleanReturns the value of thepremiumSubscriptionrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuniqueGiftsrecord component.booleanReturns the value of theunlimitedGiftsrecord component.
-
Constructor Details
-
AcceptedGiftTypes
public AcceptedGiftTypes(boolean unlimitedGifts, boolean limitedGifts, boolean uniqueGifts, boolean premiumSubscription, boolean giftsFromChannels) Creates an instance of aAcceptedGiftTypesrecord class.- Parameters:
unlimitedGifts- the value for theunlimitedGiftsrecord componentlimitedGifts- the value for thelimitedGiftsrecord componentuniqueGifts- the value for theuniqueGiftsrecord componentpremiumSubscription- the value for thepremiumSubscriptionrecord componentgiftsFromChannels- the value for thegiftsFromChannelsrecord 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. All components in this record class are compared with '=='. -
unlimitedGifts
public boolean unlimitedGifts()Returns the value of theunlimitedGiftsrecord component.- Returns:
- the value of the
unlimitedGiftsrecord component
-
limitedGifts
public boolean limitedGifts()Returns the value of thelimitedGiftsrecord component.- Returns:
- the value of the
limitedGiftsrecord component
-
uniqueGifts
public boolean uniqueGifts()Returns the value of theuniqueGiftsrecord component.- Returns:
- the value of the
uniqueGiftsrecord component
-
giftsFromChannels
public boolean giftsFromChannels()Returns the value of thegiftsFromChannelsrecord component.- Returns:
- the value of the
giftsFromChannelsrecord component
-