Record Class MessageReactionUpdated
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.MessageReactionUpdated
- All Implemented Interfaces:
Serializable,ApiResult
public record MessageReactionUpdated(@NotNull Chat chat, int messageId, @Nullable User user, @Nullable Chat actorChat, int date, @NotNull ReactionType[] oldReaction, @NotNull ReactionType[] newReaction)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMessageReactionUpdated(@NotNull Chat chat, int messageId, @Nullable User user, @Nullable Chat actorChat, int date, @NotNull ReactionType[] oldReaction, @NotNull ReactionType[] newReaction) Creates an instance of aMessageReactionUpdatedrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable ChatReturns the value of theactorChatrecord component.@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 ReactionType[]Returns the value of thenewReactionrecord component.@NotNull ReactionType[]Returns the value of theoldReactionrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Useruser()Returns the value of theuserrecord component.
-
Constructor Details
-
MessageReactionUpdated
public MessageReactionUpdated(@NotNull @NotNull Chat chat, int messageId, @Nullable @Nullable User user, @Nullable @Nullable Chat actorChat, int date, @NotNull @NotNull ReactionType[] oldReaction, @NotNull @NotNull ReactionType[] newReaction) Creates an instance of aMessageReactionUpdatedrecord class.- Parameters:
chat- the value for thechatrecord componentmessageId- the value for themessageIdrecord componentuser- the value for theuserrecord componentactorChat- the value for theactorChatrecord componentdate- the value for thedaterecord componentoldReaction- the value for theoldReactionrecord componentnewReaction- the value for thenewReactionrecord 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
-
user
Returns the value of theuserrecord component.- Returns:
- the value of the
userrecord component
-
actorChat
Returns the value of theactorChatrecord component.- Returns:
- the value of the
actorChatrecord component
-
date
public int date()Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
oldReaction
Returns the value of theoldReactionrecord component.- Returns:
- the value of the
oldReactionrecord component
-
newReaction
Returns the value of thenewReactionrecord component.- Returns:
- the value of the
newReactionrecord component
-