Session
Object Hierarchy:
Description:
public class Session :
Error
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
Content:
Properties:
- public int32 api_id { get; set construct; }
Telegram API identifier, as provided by the application
- public string application_name { get; set construct; }
Name of the application, as provided by the application
- public string application_version { get; set construct; }
The version of the application, as provided by the application
- public bool can_accept_calls { get; set construct; }
True, if incoming calls can be accepted by the session
- public bool can_accept_secret_chats { get; set construct; }
True, if incoming secret chats can be accepted by the session
- public string device_model { get; set construct; }
Model of the device the application has been run or is running on, as
provided by the application
- public int64 id_ { get; set construct; }
Session identifier
- public string ip_address { get; set construct; }
IP address from which the session was created, in human-readable
format
- public bool is_current { get; set construct; }
True, if this session is the current session
- public bool is_official_application { get; set construct; }
True, if the application is an official application or uses the api_id
of an official application
- public bool is_password_pending { get; set construct; }
True, if a 2-step verification password is needed to complete
authorization of the session
- public bool is_unconfirmed { get; set construct; }
True, if the session wasn't confirmed from another session
- public int32 last_active_date { get; set construct; }
Point in time (Unix timestamp) when the session was last used
- public string location { get; set construct; }
A human-readable description of the location from which the session
was created, based on the IP address
- public int32 log_in_date { get; set construct; }
Point in time (Unix timestamp) when the user has logged in
- public string platform { get; set construct; }
Operating system the application has been run or is running on, as
provided by the application
- public string system_version { get; set construct; }
Version of the operating system the application has been run or is
running on, as provided by the application
- public SessionType type_ { get; set construct; }
Session type based on the system and application version, which can be
used to display a corresponding icon
Creation methods:
- public Session (int64 id_, bool is_current, bool is_password_pending, bool is_unconfirmed, bool can_accept_secret_chats, bool can_accept_calls, SessionType type_, int32 api_id, string application_name, string application_version, bool is_official_application, string device_model, string platform, string system_version, int32 log_in_date, int32 last_active_date, string ip_address, string location)
Inherited Members:
All known members inherited from class TDLib.Error
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref