Record Class ChatMemberUpdated
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.ChatMemberUpdated
- All Implemented Interfaces:
Serializable,ApiResult
public record ChatMemberUpdated(@NotNull Chat chat, @NotNull User from, @NotNull Date date, @NotNull ChatMember oldChatMember, @NotNull ChatMember newChatMember, @Nullable ChatInviteLink inviteLink, boolean viaJoinRequest, boolean viaChatFolderInviteLink)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionChatMemberUpdated(@NotNull Chat chat, @NotNull User from, @NotNull Date date, @NotNull ChatMember oldChatMember, @NotNull ChatMember newChatMember, @Nullable ChatInviteLink inviteLink, boolean viaJoinRequest, boolean viaChatFolderInviteLink) Creates an instance of aChatMemberUpdatedrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Chatchat()Returns the value of thechatrecord component.@NotNull Datedate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull Userfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.@Nullable ChatInviteLinkReturns the value of theinviteLinkrecord component.@NotNull ChatMemberReturns the value of thenewChatMemberrecord component.@NotNull ChatMemberReturns the value of theoldChatMemberrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theviaChatFolderInviteLinkrecord component.booleanReturns the value of theviaJoinRequestrecord component.
-
Constructor Details
-
ChatMemberUpdated
public ChatMemberUpdated(@NotNull @NotNull Chat chat, @NotNull @NotNull User from, @NotNull @NotNull Date date, @NotNull @NotNull ChatMember oldChatMember, @NotNull @NotNull ChatMember newChatMember, @Nullable @Nullable ChatInviteLink inviteLink, boolean viaJoinRequest, boolean viaChatFolderInviteLink) Creates an instance of aChatMemberUpdatedrecord class.- Parameters:
chat- the value for thechatrecord componentfrom- the value for thefromrecord componentdate- the value for thedaterecord componentoldChatMember- the value for theoldChatMemberrecord componentnewChatMember- the value for thenewChatMemberrecord componentinviteLink- the value for theinviteLinkrecord componentviaJoinRequest- the value for theviaJoinRequestrecord componentviaChatFolderInviteLink- the value for theviaChatFolderInviteLinkrecord 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
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
oldChatMember
Returns the value of theoldChatMemberrecord component.- Returns:
- the value of the
oldChatMemberrecord component
-
newChatMember
Returns the value of thenewChatMemberrecord component.- Returns:
- the value of the
newChatMemberrecord component
-
inviteLink
Returns the value of theinviteLinkrecord component.- Returns:
- the value of the
inviteLinkrecord component
-
viaJoinRequest
public boolean viaJoinRequest()Returns the value of theviaJoinRequestrecord component.- Returns:
- the value of the
viaJoinRequestrecord component
-
viaChatFolderInviteLink
public boolean viaChatFolderInviteLink()Returns the value of theviaChatFolderInviteLinkrecord component.- Returns:
- the value of the
viaChatFolderInviteLinkrecord component
-