Module tdlight.api

Class TdApi.SuggestedActionSetPassword

Enclosing class:
TdApi

public static final class TdApi.SuggestedActionSetPassword extends TdApi.SuggestedAction
Suggests the user to set a 2-step verification password to be able to log in again.
  • Field Details

    • authorizationDelay

      public int authorizationDelay
      The number of days to pass between consecutive authorizations if the user declines to set password; if 0, then the user is advised to set the password for security reasons.
    • CONSTRUCTOR

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

    • SuggestedActionSetPassword

      public SuggestedActionSetPassword()
      Suggests the user to set a 2-step verification password to be able to log in again.
    • SuggestedActionSetPassword

      public SuggestedActionSetPassword(int authorizationDelay)
      Suggests the user to set a 2-step verification password to be able to log in again.
      Parameters:
      authorizationDelay - The number of days to pass between consecutive authorizations if the user declines to set password; if 0, then the user is advised to set the password for security reasons.
    • SuggestedActionSetPassword

      public SuggestedActionSetPassword(DataInput input) throws IOException
      Suggests the user to set a 2-step verification password to be able to log in again.
      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