mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
GUACAMOLE-394: Expose "last active" time for connections and users via REST API.
This commit is contained in:
@@ -104,6 +104,15 @@ angular.module('rest').factory('Connection', [function defineConnection() {
|
||||
*/
|
||||
this.sharingProfiles = template.sharingProfiles;
|
||||
|
||||
/**
|
||||
* The time that this connection was last used, in seconds since
|
||||
* 1970-01-01 00:00:00 UTC. If this information is unknown or
|
||||
* unavailable, this will be null.
|
||||
*
|
||||
* @type Number
|
||||
*/
|
||||
this.lastActive = template.lastActive;
|
||||
|
||||
};
|
||||
|
||||
return Connection;
|
||||
|
@@ -53,6 +53,15 @@ angular.module('rest').factory('User', [function defineUser() {
|
||||
*/
|
||||
this.password = template.password;
|
||||
|
||||
/**
|
||||
* The time that this user was last logged in, in seconds since
|
||||
* 1970-01-01 00:00:00 UTC. If this information is unknown or
|
||||
* unavailable, this will be null.
|
||||
*
|
||||
* @type Number
|
||||
*/
|
||||
this.lastActive = template.lastActive;
|
||||
|
||||
/**
|
||||
* Arbitrary name/value pairs which further describe this user. The
|
||||
* semantics and validity of these attributes are dictated by the
|
||||
|
Reference in New Issue
Block a user