java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Session
- Enclosing class:
- TdApi
Contains information about one session
in a Telegram application used by the
current user. Sessions must be shown
to the user in the returned order.
-
Field Summary
Modifier and TypeFieldDescriptionint
Telegram API identifier, as provided by the application.Name of the application, as provided by the application.The version of the application, as provided by the application.boolean
True, if incoming calls can be accepted by the session.boolean
True, if incoming secret chats can be accepted by the session.static final int
A two-letter country code for the country from which the session was created, based on the IP address.Model of the device the application has been run or is running on, as provided by the application.long
Session identifier.IP address from which the session was created, in human-readable format.boolean
True, if this session is the current session.boolean
True, if the application is an official application or uses the apiId of an official application.boolean
True, if a password is needed to complete authorization of the session.int
Point in time (Unix timestamp) when the session was last used.int
Point in time (Unix timestamp) when the user has logged in.Operating system the application has been run or is running on, as provided by the application.Region code from which the session was created, based on the IP address.Version of the operating system the application has been run or is running on, as provided by the application. -
Constructor Summary
ConstructorDescriptionSession()
Contains information about one session in a Telegram application used by the current user.Session
(long id, boolean isCurrent, boolean isPasswordPending, boolean canAcceptSecretChats, boolean canAcceptCalls, int apiId, String applicationName, String applicationVersion, boolean isOfficialApplication, String deviceModel, String platform, String systemVersion, int logInDate, int lastActiveDate, String ip, String country, String region) Contains information about one session in a Telegram application used by the current user.Contains information about one session in a Telegram application used by the current user. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
id
public long idSession identifier. -
isCurrent
public boolean isCurrentTrue, if this session is the current session. -
isPasswordPending
public boolean isPasswordPendingTrue, if a password is needed to complete authorization of the session. -
canAcceptSecretChats
public boolean canAcceptSecretChatsTrue, if incoming secret chats can be accepted by the session. -
canAcceptCalls
public boolean canAcceptCallsTrue, if incoming calls can be accepted by the session. -
apiId
public int apiIdTelegram API identifier, as provided by the application. -
applicationName
Name of the application, as provided by the application. -
applicationVersion
The version of the application, as provided by the application. -
isOfficialApplication
public boolean isOfficialApplicationTrue, if the application is an official application or uses the apiId of an official application. -
deviceModel
Model of the device the application has been run or is running on, as provided by the application. -
platform
Operating system the application has been run or is running on, as provided by the application. -
systemVersion
Version of the operating system the application has been run or is running on, as provided by the application. -
logInDate
public int logInDatePoint in time (Unix timestamp) when the user has logged in. -
lastActiveDate
public int lastActiveDatePoint in time (Unix timestamp) when the session was last used. -
ip
IP address from which the session was created, in human-readable format. -
country
A two-letter country code for the country from which the session was created, based on the IP address. -
region
Region code from which the session was created, based on the IP address. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
Session
public Session()Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the user in the returned order. -
Session
public Session(long id, boolean isCurrent, boolean isPasswordPending, boolean canAcceptSecretChats, boolean canAcceptCalls, int apiId, String applicationName, String applicationVersion, boolean isOfficialApplication, String deviceModel, String platform, String systemVersion, int logInDate, int lastActiveDate, String ip, String country, String region) Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the user in the returned order.- Parameters:
id
- long Session identifier.isCurrent
- boolean True, if this session is the current session.isPasswordPending
- boolean True, if a password is needed to complete authorization of the session.canAcceptSecretChats
- boolean True, if incoming secret chats can be accepted by the session.canAcceptCalls
- boolean True, if incoming calls can be accepted by the session.apiId
- int Telegram API identifier, as provided by the application.applicationName
- String Name of the application, as provided by the application.applicationVersion
- String The version of the application, as provided by the application.isOfficialApplication
- boolean True, if the application is an official application or uses the apiId of an official application.deviceModel
- String Model of the device the application has been run or is running on, as provided by the application.platform
- String Operating system the application has been run or is running on, as provided by the application.systemVersion
- String Version of the operating system the application has been run or is running on, as provided by the application.logInDate
- int Point in time (Unix timestamp) when the user has logged in.lastActiveDate
- int Point in time (Unix timestamp) when the session was last used.ip
- String IP address from which the session was created, in human-readable format.country
- String A two-letter country code for the country from which the session was created, based on the IP address.region
- String Region code from which the session was created, based on the IP address.
-
Session
Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the user in the returned order.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-