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

    Constructors
    Constructor
    Description
    ChatMemberUpdated(@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 a ChatMemberUpdated record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Chat
    Returns the value of the chat record component.
    @NotNull Date
    Returns the value of the date record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    @NotNull User
    Returns the value of the from record component.
    final int
    Returns a hash code value for this object.
    @Nullable ChatInviteLink
    Returns the value of the inviteLink record component.
    @NotNull ChatMember
    Returns the value of the newChatMember record component.
    @NotNull ChatMember
    Returns the value of the oldChatMember record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the viaChatFolderInviteLink record component.
    boolean
    Returns the value of the viaJoinRequest record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a ChatMemberUpdated record class.
      Parameters:
      chat - the value for the chat record component
      from - the value for the from record component
      date - the value for the date record component
      oldChatMember - the value for the oldChatMember record component
      newChatMember - the value for the newChatMember record component
      inviteLink - the value for the inviteLink record component
      viaJoinRequest - the value for the viaJoinRequest record component
      viaChatFolderInviteLink - the value for the viaChatFolderInviteLink record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • chat

      @NotNull public @NotNull Chat chat()
      Returns the value of the chat record component.
      Returns:
      the value of the chat record component
    • from

      @NotNull public @NotNull User from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • date

      @NotNull public @NotNull Date date()
      Returns the value of the date record component.
      Returns:
      the value of the date record component
    • oldChatMember

      @NotNull public @NotNull ChatMember oldChatMember()
      Returns the value of the oldChatMember record component.
      Returns:
      the value of the oldChatMember record component
    • newChatMember

      @NotNull public @NotNull ChatMember newChatMember()
      Returns the value of the newChatMember record component.
      Returns:
      the value of the newChatMember record component
    • inviteLink

      @Nullable public @Nullable ChatInviteLink inviteLink()
      Returns the value of the inviteLink record component.
      Returns:
      the value of the inviteLink record component
    • viaJoinRequest

      public boolean viaJoinRequest()
      Returns the value of the viaJoinRequest record component.
      Returns:
      the value of the viaJoinRequest record component
    • viaChatFolderInviteLink

      public boolean viaChatFolderInviteLink()
      Returns the value of the viaChatFolderInviteLink record component.
      Returns:
      the value of the viaChatFolderInviteLink record component