Record Class MessageReactionCountUpdated
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.MessageReactionCountUpdated
- All Implemented Interfaces:
Serializable,ApiResult
public record MessageReactionCountUpdated(@NotNull Chat chat, int messageId, int date, @NotNull ReactionCount[] reactions)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMessageReactionCountUpdated(@NotNull Chat chat, int messageId, int date, @NotNull ReactionCount[] reactions) Creates an instance of aMessageReactionCountUpdatedrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Chatchat()Returns the value of thechatrecord component.intdate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themessageIdrecord component.@NotNull ReactionCount[]Returns the value of thereactionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MessageReactionCountUpdated
public MessageReactionCountUpdated(@NotNull @NotNull Chat chat, int messageId, int date, @NotNull @NotNull ReactionCount[] reactions) Creates an instance of aMessageReactionCountUpdatedrecord class.- Parameters:
chat- the value for thechatrecord componentmessageId- the value for themessageIdrecord componentdate- the value for thedaterecord componentreactions- the value for thereactionsrecord 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 '=='. -
chat
Returns the value of thechatrecord component.- Returns:
- the value of the
chatrecord component
-
messageId
public int messageId()Returns the value of themessageIdrecord component.- Returns:
- the value of the
messageIdrecord component
-
date
public int date()Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
reactions
Returns the value of thereactionsrecord component.- Returns:
- the value of the
reactionsrecord component
-