C# Class j64.AlarmServer.AlarmSystem

An alarm system contains all of the zones and partitions managed by the Envisalink system. The alarm system will process events received from the TPI and handle them appropriately. To use this class you should create a new instance and then start a session with the TPI: var a = new AlarmSystem(); a.StartSession(host, port, user, password); This will get things rolling and allow you to see all of the commands and events that are being exchanged with the TPI.
Show file Open project: joejarvis64/j64.AlarmServer

Private Properties

Property Type Description
P_PartitionChanged void
ProcessEvent void
TpiSocket_ResponseReceived void
Z_ZoneChanged void

Public Methods

Method Description
AwayArmSystem ( int partitionId ) : void
BypassZone ( int zoneId ) : void
DisArmSystem ( int partitionId ) : void
DumpZoneTimers ( ) : void
SoundAlarm ( ) : void
StartSession ( int pollInterval = 1200 ) : void
StayArmSystem ( int partitionId ) : void
StopSession ( ) : void

Private Methods

Method Description
P_PartitionChanged ( object sender, Partition e ) : void
ProcessEvent ( TpiResponse response ) : void
TpiSocket_ResponseReceived ( object sender, TpiResponse response ) : void
Z_ZoneChanged ( object sender, Zone e ) : void

Method Details

AwayArmSystem() public method

public AwayArmSystem ( int partitionId ) : void
partitionId int
return void

BypassZone() public method

public BypassZone ( int zoneId ) : void
zoneId int
return void

DisArmSystem() public method

public DisArmSystem ( int partitionId ) : void
partitionId int
return void

DumpZoneTimers() public method

public DumpZoneTimers ( ) : void
return void

SoundAlarm() public method

public SoundAlarm ( ) : void
return void

StartSession() public method

public StartSession ( int pollInterval = 1200 ) : void
pollInterval int
return void

StayArmSystem() public method

public StayArmSystem ( int partitionId ) : void
partitionId int
return void

StopSession() public method

public StopSession ( ) : void
return void