C# Class HomeSecurity.Web.Hubs.MasterControlPanel

显示文件 Open project: mlinnen/CloudHomeSecurity Class Usage Examples

Public Methods

Method Description
MasterControlPanel ( IMqtt client ) : System
ProcessCommand ( CommandEventArgs args ) : bool
PublishState ( ) : void

Private Methods

Method Description
ArmSecuritySystem ( ) : void
DisarmAlarm ( CommandEventArgs args ) : bool
GetAlarmState ( AlarmState state ) : string
LockAllDoors ( ) : void
ParseAlarmState ( string state ) : AlarmState
ProcessLockStateChange ( CommandEventArgs args ) : void
ProcessSensorStateChange ( CommandEventArgs args ) : void
SendAlarmStateChange ( string houseCode, AlarmState state ) : void
SetAlarmState ( CommandEventArgs args ) : void
SilenceBurglarAlarm ( ) : void
SoundBurglarAlarm ( CommandEventArgs args ) : void
UnLockDoor ( CommandEventArgs args ) : bool
_giveMeTimeToEnterTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
_giveMeTimeToExitTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
_turnOffDoorbellIndicatorTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Method Details

MasterControlPanel() public method

public MasterControlPanel ( IMqtt client ) : System
client IMqtt
return System

ProcessCommand() public method

public ProcessCommand ( CommandEventArgs args ) : bool
args CommandEventArgs
return bool

PublishState() public method

public PublishState ( ) : void
return void