/// <summary> /// Initializes a new instance. /// </summary> /// <param name="id"></param> public RnetController(RnetBus bus, RnetControllerId id) : base(bus) { Contract.Requires<ArgumentNullException>(bus != null); RnetTraceSource.Default.TraceEvent(TraceEventType.Verbose, 0, "RnetController:ctor Id={0}", id); this.id = id; this.zones = new RnetZoneCollection(this); }
/// <summary> /// Gets a handle to the device given the specified device id. /// </summary> /// <param name="controllerId"></param> /// <param name="zoneId"></param> /// <param name="keypadId"></param> /// <returns></returns> public RnetDevice this[RnetControllerId controllerId, RnetZoneId zoneId, RnetKeypadId keypadId] { get { return GetOrCreateDevice(new RnetDeviceId(controllerId, zoneId, keypadId)); } }