Module tdlight.api

Class TdApi.ChatInviteLinkCount

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatInviteLinkCount
Enclosing class:
TdApi

public static final class TdApi.ChatInviteLinkCount extends TdApi.Object
Describes a chat administrator with a number of active and revoked chat invite links.
  • Field Details

    • userId

      public long userId
      Administrator's user identifier.
    • inviteLinkCount

      public int inviteLinkCount
      Number of active invite links.
    • revokedInviteLinkCount

      public int revokedInviteLinkCount
      Number of revoked invite links.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • ChatInviteLinkCount

      public ChatInviteLinkCount()
      Describes a chat administrator with a number of active and revoked chat invite links.
    • ChatInviteLinkCount

      public ChatInviteLinkCount(long userId, int inviteLinkCount, int revokedInviteLinkCount)
      Describes a chat administrator with a number of active and revoked chat invite links.
      Parameters:
      userId - Administrator's user identifier.
      inviteLinkCount - Number of active invite links.
      revokedInviteLinkCount - Number of revoked invite links.
    • ChatInviteLinkCount

      public ChatInviteLinkCount(DataInput input) throws IOException
      Describes a chat administrator with a number of active and revoked chat invite links.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object