Record Class AffiliateInfo
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.AffiliateInfo
- All Implemented Interfaces:
Serializable,ApiResult
public record AffiliateInfo(@Nullable User affiliateUser, @Nullable Chat affiliateChat, int commissionPerMille, int amount, @org.jetbrains.annotations.Range(from=-999999999L, to=999999999L) int nanostarAmount)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAffiliateInfo(@Nullable User affiliateUser, @Nullable Chat affiliateChat, int commissionPerMille, int amount, @org.jetbrains.annotations.Range(from=-999999999L, to=999999999L) int nanostarAmount) Creates an instance of aAffiliateInforecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ChatReturns the value of theaffiliateChatrecord component.@Nullable UserReturns the value of theaffiliateUserrecord component.intamount()Returns the value of theamountrecord component.intReturns the value of thecommissionPerMillerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@org.jetbrains.annotations.Range(from=-999999999L, to=999999999L) intReturns the value of thenanostarAmountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AffiliateInfo
public AffiliateInfo(@Nullable @Nullable User affiliateUser, @Nullable @Nullable Chat affiliateChat, int commissionPerMille, int amount, @org.jetbrains.annotations.Range(from=-999999999L, to=999999999L) int nanostarAmount) Creates an instance of aAffiliateInforecord class.- Parameters:
affiliateUser- the value for theaffiliateUserrecord componentaffiliateChat- the value for theaffiliateChatrecord componentcommissionPerMille- the value for thecommissionPerMillerecord componentamount- the value for theamountrecord componentnanostarAmount- the value for thenanostarAmountrecord 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 '=='. -
affiliateUser
Returns the value of theaffiliateUserrecord component.- Returns:
- the value of the
affiliateUserrecord component
-
affiliateChat
Returns the value of theaffiliateChatrecord component.- Returns:
- the value of the
affiliateChatrecord component
-
commissionPerMille
public int commissionPerMille()Returns the value of thecommissionPerMillerecord component.- Returns:
- the value of the
commissionPerMillerecord component
-
amount
public int amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
nanostarAmount
public @org.jetbrains.annotations.Range(from=-999999999L, to=999999999L) int nanostarAmount()Returns the value of thenanostarAmountrecord component.- Returns:
- the value of the
nanostarAmountrecord component
-