public static class TdApi.Session extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
int |
apiId
Telegram API identifier, as provided by the application.
|
java.lang.String |
applicationName
Name of the application, as provided by the application.
|
java.lang.String |
applicationVersion
The version of the application, as provided by the application.
|
boolean |
canAcceptCalls
True, if incoming calls can be accepted by the session.
|
boolean |
canAcceptSecretChats
True, if incoming secret chats can be accepted by the session.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
country
A two-letter country code for the country from which the session was created, based on the IP address.
|
java.lang.String |
deviceModel
Model of the device the application has been run or is running on, as provided by the application.
|
long |
id
Session identifier.
|
java.lang.String |
ip
IP address from which the session was created, in human-readable format.
|
boolean |
isCurrent
True, if this session is the current session.
|
boolean |
isOfficialApplication
True, if the application is an official application or uses the apiId of an official application.
|
boolean |
isPasswordPending
True, if a password is needed to complete authorization of the session.
|
int |
lastActiveDate
Point in time (Unix timestamp) when the session was last used.
|
int |
logInDate
Point in time (Unix timestamp) when the user has logged in.
|
java.lang.String |
platform
Operating system the application has been run or is running on, as provided by the application.
|
java.lang.String |
region
Region code from which the session was created, based on the IP address.
|
java.lang.String |
systemVersion
Version of the operating system the application has been run or is running on, as provided by the application.
|
Constructor and 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,
java.lang.String applicationName,
java.lang.String applicationVersion,
boolean isOfficialApplication,
java.lang.String deviceModel,
java.lang.String platform,
java.lang.String systemVersion,
int logInDate,
int lastActiveDate,
java.lang.String ip,
java.lang.String country,
java.lang.String region)
Contains information about one session in a Telegram application used by the current user.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public long id
public boolean isCurrent
public boolean isPasswordPending
public boolean canAcceptSecretChats
public boolean canAcceptCalls
public int apiId
public java.lang.String applicationName
public java.lang.String applicationVersion
public boolean isOfficialApplication
public java.lang.String deviceModel
public java.lang.String platform
public java.lang.String systemVersion
public int logInDate
public int lastActiveDate
public java.lang.String ip
public java.lang.String country
public java.lang.String region
public static final int CONSTRUCTOR
public Session()
public Session(long id, boolean isCurrent, boolean isPasswordPending, boolean canAcceptSecretChats, boolean canAcceptCalls, int apiId, java.lang.String applicationName, java.lang.String applicationVersion, boolean isOfficialApplication, java.lang.String deviceModel, java.lang.String platform, java.lang.String systemVersion, int logInDate, int lastActiveDate, java.lang.String ip, java.lang.String country, java.lang.String region)
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.public int getConstructor()
getConstructor
in class TdApi.Object