Record Class AcceptedGiftTypes
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.AcceptedGiftTypes
- All Implemented Interfaces:
Serializable, ApiResult
-
Nested Class Summary
Nested Classes -
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.static AcceptedGiftTypes.BuilderbooleanReturns 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
-
ofBuilder
-
toBuilder
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
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
-