Class TdApi.TemporaryPasswordState

  • Enclosing class:
    TdApi

    public static class TdApi.TemporaryPasswordState
    extends TdApi.Object
    Returns information about the availability of a temporary password, which can be used for payments.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      boolean hasPassword
      True, if a temporary password is available.
      int validFor
      Time left before the temporary password expires, in seconds.
    • Field Detail

      • hasPassword

        public boolean hasPassword
        True, if a temporary password is available.
      • validFor

        public int validFor
        Time left before the temporary password expires, in seconds.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TemporaryPasswordState

        public TemporaryPasswordState()
        Default constructor.
      • TemporaryPasswordState

        public TemporaryPasswordState​(boolean hasPassword,
                                      int validFor)
        Constructor for initialization of all fields.
        Parameters:
        hasPassword - True, if a temporary password is available.
        validFor - Time left before the temporary password expires, in seconds.