mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUAC-1193 Add required connection name property to connection record.
This commit is contained in:
@@ -37,6 +37,11 @@ public class APIConnectionRecord {
|
||||
*/
|
||||
private final String connectionIdentifier;
|
||||
|
||||
/**
|
||||
* The identifier of the connection associated with this record.
|
||||
*/
|
||||
private final String connectionName;
|
||||
|
||||
/**
|
||||
* The date and time the connection began.
|
||||
*/
|
||||
@@ -72,11 +77,12 @@ public class APIConnectionRecord {
|
||||
*/
|
||||
public APIConnectionRecord(ConnectionRecord record) {
|
||||
this.connectionIdentifier = record.getConnectionIdentifier();
|
||||
this.startDate = record.getStartDate();
|
||||
this.endDate = record.getEndDate();
|
||||
this.remoteHost = record.getRemoteHost();
|
||||
this.username = record.getUsername();
|
||||
this.active = record.isActive();
|
||||
this.connectionName = record.getConnectionName();
|
||||
this.startDate = record.getStartDate();
|
||||
this.endDate = record.getEndDate();
|
||||
this.remoteHost = record.getRemoteHost();
|
||||
this.username = record.getUsername();
|
||||
this.active = record.isActive();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -90,6 +96,16 @@ public class APIConnectionRecord {
|
||||
return connectionIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name of the connection associated with this record.
|
||||
*
|
||||
* @return
|
||||
* The name of the connection associated with this record.
|
||||
*/
|
||||
public String getConnectionName() {
|
||||
return connectionName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the date and time the connection began.
|
||||
*
|
||||
|
Reference in New Issue
Block a user