Record Class SuggestedPostPaid
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.SuggestedPostPaid
- All Implemented Interfaces:
Serializable,ApiResult
public record SuggestedPostPaid(@Nullable Message suggestedPostMessage, @NotNull TelegramCurrency currency, int amount, @Nullable StarAmount starAmount)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSuggestedPostPaid(@Nullable Message suggestedPostMessage, @NotNull TelegramCurrency currency, int amount, @Nullable StarAmount starAmount) Creates an instance of aSuggestedPostPaidrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintamount()Returns the value of theamountrecord component.@NotNull TelegramCurrencycurrency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StarAmountReturns the value of thestarAmountrecord component.@Nullable MessageReturns the value of thesuggestedPostMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SuggestedPostPaid
public SuggestedPostPaid(@Nullable @Nullable Message suggestedPostMessage, @NotNull @NotNull TelegramCurrency currency, int amount, @Nullable @Nullable StarAmount starAmount) Creates an instance of aSuggestedPostPaidrecord class.- Parameters:
suggestedPostMessage- the value for thesuggestedPostMessagerecord componentcurrency- the value for thecurrencyrecord componentamount- the value for theamountrecord componentstarAmount- the value for thestarAmountrecord 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 '=='. -
suggestedPostMessage
Returns the value of thesuggestedPostMessagerecord component.- Returns:
- the value of the
suggestedPostMessagerecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
amount
public int amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
starAmount
Returns the value of thestarAmountrecord component.- Returns:
- the value of the
starAmountrecord component
-