protected RoleMbedSoftUps()
        {
            SetName(RoleName);
            _instance = this;

            {
                List<VParamType> args = new List<VParamType>() { new ParamType(0) };
                List<VParamType> retVals = new List<VParamType>() { new ParamType(0) };
                AddOperation(new Operation(OpOnSwitch, args, retVals));
            }

            {
                List<VParamType> args = new List<VParamType>() { new ParamType(0) };
                List<VParamType> retVals = new List<VParamType>() { new ParamType(0) };
                AddOperation(new Operation(OpOffSwitch, args, retVals));
            }


            {
                List<VParamType> args = new List<VParamType>() { new ParamType(0) };
                List<VParamType> retVals = new List<VParamType>() { new ParamType(0) };
                AddOperation(new Operation(OpGetDeviceNum, args, retVals));
            }

        }
Esempio n. 2
0
        protected RoleMbedSoftUps()
        {
            SetName(RoleName);
            _instance = this;

            {
                List <VParamType> args = new List <VParamType>()
                {
                    new ParamType(0)
                };
                List <VParamType> retVals = new List <VParamType>()
                {
                    new ParamType(0)
                };
                AddOperation(new Operation(OpOnSwitch, args, retVals));
            }

            {
                List <VParamType> args = new List <VParamType>()
                {
                    new ParamType(0)
                };
                List <VParamType> retVals = new List <VParamType>()
                {
                    new ParamType(0)
                };
                AddOperation(new Operation(OpOffSwitch, args, retVals));
            }


            {
                List <VParamType> args = new List <VParamType>()
                {
                    new ParamType(0)
                };
                List <VParamType> retVals = new List <VParamType>()
                {
                    new ParamType(0)
                };
                AddOperation(new Operation(OpGetDeviceNum, args, retVals));
            }
        }