Example #1
0
        //===================// Constructor //===================//

        public HVAC()
        {
            // Set empty values to be populated by S+
            id          = 0;
            name        = "";
            controlType = 0;
        }
Example #2
0
        //===================// Methods //===================//

        /**
         * Method: CreateHVAC
         * Access: public
         * Description: Populate object with values passed from S+
         */
        public void CreateHVAC(ushort _id, string _name, ushort _controlType, ushort _hasFanModeControl, ushort _hasFanSpeedControl)
        {
            this.id                 = _id;
            this.name               = _name;
            this.controlType        = (HVACControlType)_controlType;
            this.hasFanModeControl  = _hasFanModeControl == 1 ? true : false;
            this.hasFanSpeedControl = _hasFanSpeedControl == 1 ? true : false;
        }