Package org.drinkless.tdlib
Class TdApi.Session
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Session
-
- Enclosing class:
- TdApi
public static class TdApi.Session extends TdApi.Object
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
Fields Modifier and Type Field Description intapiIdTelegram API identifier, as provided by the application.StringapplicationNameName of the application, as provided by the application.StringapplicationVersionThe version of the application, as provided by the application.booleancanAcceptCallsTrue, if incoming calls can be accepted by the session.booleancanAcceptSecretChatsTrue, if incoming secret chats can be accepted by the session.static intCONSTRUCTORIdentifier uniquely determining type of the object.StringcountryA two-letter country code for the country from which the session was created, based on the IP address.StringdeviceModelModel of the device the application has been run or is running on, as provided by the application.longidSession identifier.StringipIP address from which the session was created, in human-readable format.booleanisCurrentTrue, if this session is the current session.booleanisOfficialApplicationTrue, if the application is an official application or uses the apiId of an official application.booleanisPasswordPendingTrue, if a password is needed to complete authorization of the session.intlastActiveDatePoint in time (Unix timestamp) when the session was last used.intlogInDatePoint in time (Unix timestamp) when the user has logged in.StringplatformOperating system the application has been run or is running on, as provided by the application.StringregionRegion code from which the session was created, based on the IP address.StringsystemVersionVersion of the operating system the application has been run or is running on, as provided by the application.
-
Constructor Summary
Constructors Constructor Description Session()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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
id
public long id
Session identifier.
-
isCurrent
public boolean isCurrent
True, if this session is the current session.
-
isPasswordPending
public boolean isPasswordPending
True, if a password is needed to complete authorization of the session.
-
canAcceptSecretChats
public boolean canAcceptSecretChats
True, if incoming secret chats can be accepted by the session.
-
canAcceptCalls
public boolean canAcceptCalls
True, if incoming calls can be accepted by the session.
-
apiId
public int apiId
Telegram API identifier, as provided by the application.
-
applicationName
public String applicationName
Name of the application, as provided by the application.
-
applicationVersion
public String applicationVersion
The version of the application, as provided by the application.
-
isOfficialApplication
public boolean isOfficialApplication
True, if the application is an official application or uses the apiId of an official application.
-
deviceModel
public String deviceModel
Model of the device the application has been run or is running on, as provided by the application.
-
platform
public String platform
Operating system the application has been run or is running on, as provided by the application.
-
systemVersion
public String systemVersion
Version of the operating system the application has been run or is running on, as provided by the application.
-
logInDate
public int logInDate
Point in time (Unix timestamp) when the user has logged in.
-
lastActiveDate
public int lastActiveDate
Point in time (Unix timestamp) when the session was last used.
-
ip
public String ip
IP address from which the session was created, in human-readable format.
-
country
public String country
A two-letter country code for the country from which the session was created, based on the IP address.
-
region
public String region
Region code 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:
- Constant Field Values
-
-
Constructor Detail
-
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- Session identifier.isCurrent- True, if this session is the current session.isPasswordPending- True, if a password is needed to complete authorization of the session.canAcceptSecretChats- True, if incoming secret chats can be accepted by the session.canAcceptCalls- True, if incoming calls can be accepted by the session.apiId- Telegram 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- True, 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- Point in time (Unix timestamp) when the user has logged in.lastActiveDate- Point 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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-