Record Class SuggestedPostRefunded
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.SuggestedPostRefunded
- All Implemented Interfaces:
Serializable, ApiResult
public record SuggestedPostRefunded(@Nullable Message suggestedPostMessage, @NotNull SuggestedPostRefundReason reason)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSuggestedPostRefunded(@Nullable Message suggestedPostMessage, @NotNull SuggestedPostRefundReason reason) Creates an instance of aSuggestedPostRefundedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull SuggestedPostRefundReasonreason()Returns the value of thereasonrecord component.@Nullable MessageReturns the value of thesuggestedPostMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SuggestedPostRefunded
public SuggestedPostRefunded(@Nullable @Nullable Message suggestedPostMessage, @NotNull @NotNull SuggestedPostRefundReason reason) Creates an instance of aSuggestedPostRefundedrecord class.- Parameters:
suggestedPostMessage- the value for thesuggestedPostMessagerecord componentreason- the value for thereasonrecord component
-
-
Method Details
-
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 withObjects::equals(Object,Object). -
suggestedPostMessage
Returns the value of thesuggestedPostMessagerecord component.- Returns:
- the value of the
suggestedPostMessagerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-