mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Added missing constructors.
This commit is contained in:
@@ -24,6 +24,19 @@ public class TunnelAttachEvent implements CredentialEvent, TunnelEvent {
|
|||||||
*/
|
*/
|
||||||
private GuacamoleTunnel tunnel;
|
private GuacamoleTunnel tunnel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new TunnelAttachEvent which represents the attaching of the
|
||||||
|
* given tunnel via a request associated with the given credentials.
|
||||||
|
*
|
||||||
|
* @param credentials The credentials associated with the request
|
||||||
|
* attaching the tunnel.
|
||||||
|
* @param tunnel The tunnel being attached.
|
||||||
|
*/
|
||||||
|
public TunnelAttachEvent(Credentials credentials, GuacamoleTunnel tunnel) {
|
||||||
|
this.credentials = credentials;
|
||||||
|
this.tunnel = tunnel;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Credentials getCredentials() {
|
public Credentials getCredentials() {
|
||||||
return credentials;
|
return credentials;
|
||||||
|
@@ -24,6 +24,19 @@ public class TunnelDetachEvent implements CredentialEvent, TunnelEvent {
|
|||||||
*/
|
*/
|
||||||
private GuacamoleTunnel tunnel;
|
private GuacamoleTunnel tunnel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creates a new TunnelDetachEvent which represents the detaching of the
|
||||||
|
* given tunnel via a request associated with the given credentials.
|
||||||
|
*
|
||||||
|
* @param credentials The credentials associated with the request
|
||||||
|
* detaching the tunnel.
|
||||||
|
* @param tunnel The tunnel being detached.
|
||||||
|
*/
|
||||||
|
public TunnelDetachEvent(Credentials credentials, GuacamoleTunnel tunnel) {
|
||||||
|
this.credentials = credentials;
|
||||||
|
this.tunnel = tunnel;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Credentials getCredentials() {
|
public Credentials getCredentials() {
|
||||||
return credentials;
|
return credentials;
|
||||||
|
Reference in New Issue
Block a user