Adding status enum to Clients; Added interface for these statuses

This commit is contained in:
Heath Volmer
2016-09-26 14:46:50 -06:00
parent a99a69b4bb
commit 69802c8bc5
10 changed files with 53 additions and 38 deletions

View File

@@ -10,7 +10,7 @@ namespace PepperDash.Core
/// <summary>
///
/// </summary>
public class GenericSshClient : Device, IBasicCommunication, IAutoReconnect
public class GenericSshClient : Device, ISocketStatus, IAutoReconnect
{
/// <summary>
/// Event that fires when data is received. Delivers args with byte array
@@ -27,6 +27,10 @@ namespace PepperDash.Core
/// </summary>
public event EventHandler<SshConnectionChangeEventArgs> ConnectionChange;
public event Crestron.SimplSharp.CrestronSockets.TCPClientSocketStatusChangeEventHandler SocketStatusChange;
/// <summary>
/// Address of server
/// </summary>
@@ -55,6 +59,15 @@ namespace PepperDash.Core
// returns false if no client or not connected
get { return UStatus == 2; }
}
/// <summary>
///
/// </summary>
public Crestron.SimplSharp.CrestronSockets.SocketStatus ClientStatus
{
get { throw new NotImplementedException(); }
}
/// <summary>
/// Contains the familiar Simpl analog status values. This drives the ConnectionChange event
/// and IsConnected with be true when this == 2.