Esempio n. 1
0
        //===================// Methods //===================//

        /**
         * Method: createLight
         * Access: public
         * @param: ushort _id
         * @param: string _name
         * @param: ushort _controlType
         * @param: ushort _hasFeedback
         * @return: void
         * Description: Populate object with values passed from S+
         */
        public void createLight(ushort _id, string _name, ushort _controlType, ushort _hasFeedback)
        {
            this.id          = _id;
            this.name        = _name;
            this.controlType = (LightingControlType)_controlType;
            this.hasFeedback = _hasFeedback == 1 ? true : false;
        }
Esempio n. 2
0
        //===================// Constructor //===================//

        public Light()
        {
            // Set empty values to be populated by S+
            id          = 0;
            name        = "";
            controlType = 0;
            hasFeedback = false;
            isOn        = false;
            level       = 0;
        }