2017-03-11 19:54:51 +01:00
|
|
|
---
|
|
|
|
title: session
|
|
|
|
description: Contains information about one session in some application used by the user
|
|
|
|
---
|
|
|
|
## Constructor: session
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Contains information about one session in some application used by the user
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
2017-08-20 11:05:56 +02:00
|
|
|
|----------|---------------|----------|-------------|
|
2017-12-21 21:08:25 +01:00
|
|
|
|id|[int64](../constructors/int64.md) | Yes|Session identifier|
|
2017-03-11 19:54:51 +01:00
|
|
|
|is\_current|[Bool](../types/Bool.md) | Yes|True, if it is current session|
|
|
|
|
|app\_id|[int](../types/int.md) | Yes|Application identifier, provided by the application|
|
|
|
|
|app\_name|[string](../types/string.md) | Yes|Name of the application, provided by the application|
|
|
|
|
|app\_version|[string](../types/string.md) | Yes|Version of the application, provided by the application|
|
|
|
|
|is\_official\_app|[Bool](../types/Bool.md) | Yes|True, if the application is an official application or uses the app_id of some official application|
|
|
|
|
|device\_model|[string](../types/string.md) | Yes|Model of a device application is runned on, provided by the application|
|
|
|
|
|platform|[string](../types/string.md) | Yes|Operating system application is runned on, provided by the application|
|
|
|
|
|system\_version|[string](../types/string.md) | Yes|Version of operating system application is runned on, provided by the application|
|
2017-08-25 15:05:53 +02:00
|
|
|
|log\_in\_date|[int](../types/int.md) | Yes|Date the user has logged in, unix time|
|
|
|
|
|last\_active\_date|[int](../types/int.md) | Yes|Date the session was used last time, unix time|
|
2017-03-11 19:54:51 +01:00
|
|
|
|ip|[string](../types/string.md) | Yes|An ip address from which session was created in a human-readable format|
|
|
|
|
|country|[string](../types/string.md) | Yes|Two-letter country code from which session was created based on the ip|
|
|
|
|
|region|[string](../types/string.md) | Yes|Region code from which session was created based on the ip|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [Session](../types/Session.md)
|
|
|
|
|
|
|
|
|