Module tdlight.api

Class TdApi.AuthenticationCodeInfo

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

public static final class TdApi.AuthenticationCodeInfo extends TdApi.Object
Information about the authentication code that was sent.
  • Field Details

    • phoneNumber

      public String phoneNumber
      A phone number that is being authenticated.
    • type

      The way the code was sent to the user.
    • nextType

      The way the next code will be sent to the user; may be null.
    • timeout

      public int timeout
      Timeout before the code can be re-sent, in seconds.
    • CONSTRUCTOR

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

    • AuthenticationCodeInfo

      public AuthenticationCodeInfo()
      Information about the authentication code that was sent.
    • AuthenticationCodeInfo

      public AuthenticationCodeInfo(String phoneNumber, TdApi.AuthenticationCodeType type, TdApi.AuthenticationCodeType nextType, int timeout)
      Information about the authentication code that was sent.
      Parameters:
      phoneNumber - A phone number that is being authenticated.
      type - The way the code was sent to the user.
      nextType - The way the next code will be sent to the user; may be null.
      timeout - Timeout before the code can be re-sent, in seconds.
    • AuthenticationCodeInfo

      public AuthenticationCodeInfo(DataInput input) throws IOException
      Information about the authentication code that was sent.
      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