Module tdlight.api

Class TdApi.UnconfirmedSession

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

public static final class TdApi.UnconfirmedSession extends TdApi.Object
Contains information about an unconfirmed session.
  • Field Details

    • id

      public long id
      Session identifier.
    • logInDate

      public int logInDate
      Point in time (Unix timestamp) when the user has logged in.
    • deviceModel

      public String deviceModel
      Model of the device that was used for the session creation, as provided by the application.
    • location

      public String location
      A human-readable description of the location from which the session was created, based on the IP address.
    • CONSTRUCTOR

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

    • UnconfirmedSession

      public UnconfirmedSession()
      Contains information about an unconfirmed session.
    • UnconfirmedSession

      public UnconfirmedSession(long id, int logInDate, String deviceModel, String location)
      Contains information about an unconfirmed session.
      Parameters:
      id - Session identifier.
      logInDate - Point in time (Unix timestamp) when the user has logged in.
      deviceModel - Model of the device that was used for the session creation, as provided by the application.
      location - A human-readable description of the location from which the session was created, based on the IP address.
    • UnconfirmedSession

      public UnconfirmedSession(DataInput input) throws IOException
      Contains information about an unconfirmed session.
      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