Added missing constructors.
This commit is contained in:
1 parent
837614800d
commit
d831969322
2 files changed
+26
No files matched your search
+13
@@ -24,6 +24,19 @@ public class TunnelAttachEvent implements CredentialEvent, TunnelEvent {
|
||||
*/
|
||||
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
|
||||
public Credentials getCredentials() {
|
||||
return credentials;
|
||||
|
||||
+13
@@ -24,6 +24,19 @@ public class TunnelDetachEvent implements CredentialEvent, TunnelEvent {
|
||||
*/
|
||||
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
|
||||
public Credentials getCredentials() {
|
||||
return credentials;
|
||||
|
||||
Reference in new issue
Block a user