/// <summary>
        /// Contains features, properties and events regarding the device.
        /// </summary>
        public Chg4NDeviceHandler(SscCommon common)
            : base(common)
        {
            Handlers.Add("group", HandleGroup);

            Subscribe(BaseProperty, "group");
        }
        /// <summary>
        /// This class is for internal use only.
        /// </summary>
        public SldwBrightnessHandler(SscCommon common)
            : base(common)
        {
            Handlers.Add("brightness", HandleBrightness);

            Subscribe(BaseProperty);
        }
Esempio n. 3
0
        /// <summary>
        /// Contains features, properties and events regarding the device.
        /// </summary>
        public SldwDeviceHandler(SscCommon common, SldwBrightnessHandler brightnessHandler)
            : base(common)
        {
            _brightnessHandler = brightnessHandler;
            _brightnessHandler.BrightnessChanged += new EventHandler(_brightnessHandler_BrightnessChanged);

            Handlers.Add("group", HandleGroup);

            Subscribe(BaseProperty, "group");
        }
Esempio n. 4
0
        /// <summary>
        /// Contains features, properties and events regarding the receiving end, such as Output gain and EQ.
        /// </summary>
        public SldwAudioHandler(SscCommon common)
            : base(common)
        {
            Handlers.Add("out1", HandleOutput);
            Handlers.Add("equalizer", HandleEq);
            Handlers.Add("low_cut", HandleLowCut);

            Subscribe(BaseProperty, "out1", "gain_db");
            Subscribe(BaseProperty, "equalizer", "preset");
            Subscribe(BaseProperty, "low_cut");
        }
Esempio n. 5
0
        /// <summary>
        /// Contains features, properties and events regarding the transmitting end (the microphone or bodypack), such as battery level.
        /// </summary>
        public SldwTxHandler(SscCommon common)
            : base(common)
        {
            Warnings    = "";
            DeviceType  = eSldwTxDeviceType.Unknown;
            BatteryType = eSldwTxBatteryType.Unknown;

            Handlers.Add("active", HandleActive);
            Handlers.Add("tx1", HandleTx);

            Subscribe(BaseProperty, "active");
        }
Esempio n. 6
0
        /// <summary>
        /// Contains features, properties and events regarding the audio output, such as Dante output gain and Mute.
        /// </summary>
        public Tcc2AudioHandler(SscCommon common)
            : base(common)
        {
            Handlers.Add("exclusion_zone", HandleExclusionZone);
            Handlers.Add("out2", HandleDante);
            Handlers.Add("source_detection", HandleSourceDetection);
            Handlers.Add("mute", HandleMute);

            Subscribe(BaseProperty, "exclusion_zone", "active");
            Subscribe(BaseProperty, "out2", "gain");
            Subscribe(BaseProperty, "source_detection", "threshold");
            Subscribe(BaseProperty, "mute");
        }
Esempio n. 7
0
        /*
         * eSldwRxMuteMode _muteMode;
         * public eSldwRxMuteMode MuteMode
         * {
         *  get { return _muteMode; }
         *  set
         *  {
         *      Send((int)value, BaseProperty, "mute_mode");
         *  }
         * }
         * bool _muteState = false;
         * public bool MuteState
         * {
         *  get { return _muteState; }
         *  set
         *  {
         *      Send(value, BaseProperty, "mute_state");
         *  }
         * }
         */

        /// <summary>
        /// Contains features, properties and events regarding the transmitting end (the microphone or bodypack), such as battery level.
        /// </summary>
        public SldwRxHandler(SscCommon common)
            : base(common)
        {
            Handlers.Add("identify", HandleIdentify);
            Handlers.Add("rf_quality", HandleRfQuality);
            Handlers.Add("mute_switch_active", HandleMuteSwitchActive);
            Handlers.Add("warnings", HandleWarnings);
            //Handlers.Add("mute_mode", HandleMuteMode);
            //Handlers.Add("mute_state", HandleMuteState);

            Subscribe(BaseProperty, "identify");
            Subscribe(BaseProperty, "mute_switch_active");
            Subscribe(BaseProperty, "warnings");
            //Subscribe(BaseProperty, "mute_mode");
            //Subscribe(BaseProperty, "mute_state");
        }
        /// <summary>
        /// Contains features, properties and events regarding the device.
        /// </summary>
        public Tcc2DeviceHandler(SscCommon common)
            : base(common)
        {
            Handlers.Add("location", HandleLocation);
            Handlers.Add("position", HandlePosition);
            Handlers.Add("identification", HandleIdentify);
            Handlers.Add("led", HandleLed);

            Subscribe(BaseProperty, "location");
            Subscribe(BaseProperty, "position");
            Subscribe(BaseProperty, "identification", "visual");
            Subscribe(BaseProperty, "led", "custom", "color");
            Subscribe(BaseProperty, "led", "custom", "active");
            Subscribe(BaseProperty, "led", "mic_mute", "color");
            Subscribe(BaseProperty, "led", "mic_on", "color");
            Subscribe(BaseProperty, "led", "brightness");
        }
Esempio n. 9
0
        /// <summary>
        /// Contains features, properties and events regarding the charging bays and the devices inserted into the bays.
        /// </summary>
        public Chg4NBaysHandler(SscCommon common)
            : base(common)
        {
            for (int i = 0; i < _bays.Length; i++)
            {
                _bays[i] = new Chg4NBay();
            }

            Handlers.Add("active", HandleActive);
            Handlers.Add("serial", HandleSerial);
            Handlers.Add("charging", HandleCharging);
            Handlers.Add("bat_gauge", HandleBatteryGauge);
            Handlers.Add("bat_health", HandleBatteryHealth);
            Handlers.Add("bat_timetofull", HandleBatteryTimeToFull);
            Handlers.Add("device_type", HandleDeviceType);

            Subscribe(BaseProperty, "active");
            Subscribe(BaseProperty, "serial");
            Subscribe(BaseProperty, "charging");
            Subscribe(BaseProperty, "bat_gauge");
            Subscribe(BaseProperty, "bat_timetofull");
            Subscribe(BaseProperty, "bat_health");
            Subscribe(BaseProperty, "device_type");
        }
Esempio n. 10
0
 /// <summary>
 /// Contains features, properties and events regarding meters, such as azimuth, elevation and input peak level.
 /// </summary>
 public Tcc2MeterHandler(SscCommon common)
     : base(common)
 {
     Handlers.Add("beam", HandleBeam);
     Handlers.Add("in1", HandleIn);
 }