Example #1
0
        public RoleMicrophone()
            : base(RoleName)
        {
            SetName(RoleName);
            _instance = this;
            {
                List <HomeOS.Hub.Platform.Views.VParamType> args = new List <HomeOS.Hub.Platform.Views.VParamType>();
                args.Add(new ParamType(ParamType.SimpleType.integer, "recLength", null));

                List <HomeOS.Hub.Platform.Views.VParamType> retVals = new List <HomeOS.Hub.Platform.Views.VParamType>();
                retVals.Add(new ParamType(ParamType.SimpleType.text, "audioFullPath", null));

                AddOperation(new Operation(RoleMicrophone.OpRecAudioName, args, retVals));
            }

            {
                List <HomeOS.Hub.Platform.Views.VParamType> args = new List <HomeOS.Hub.Platform.Views.VParamType>();
                args.Add(new ParamType(0.0));

                List <HomeOS.Hub.Platform.Views.VParamType> retVals = new List <HomeOS.Hub.Platform.Views.VParamType>();
                retVals.Add(new ParamType(ParamType.SimpleType.text, "recbytes", null));

                AddOperation(new Operation(RoleMicrophone.OpRecBytesName, args, retVals, true));
            }
        }
Example #2
0
        public RoleMicrophone()
            : base(RoleName)
        {
            SetName(RoleName);
            _instance = this;
            {
                List<HomeOS.Hub.Platform.Views.VParamType> args = new List<HomeOS.Hub.Platform.Views.VParamType>();
                args.Add(new ParamType(ParamType.SimpleType.integer, "recLength", null));

                List<HomeOS.Hub.Platform.Views.VParamType> retVals = new List<HomeOS.Hub.Platform.Views.VParamType>();
                retVals.Add(new ParamType(ParamType.SimpleType.text, "audioFullPath", null));

                AddOperation(new Operation(RoleMicrophone.OpRecAudioName, args, retVals));
            }

            {
                List<HomeOS.Hub.Platform.Views.VParamType> args = new List<HomeOS.Hub.Platform.Views.VParamType>();
                args.Add(new ParamType(0.0));

                List<HomeOS.Hub.Platform.Views.VParamType> retVals = new List<HomeOS.Hub.Platform.Views.VParamType>();
                retVals.Add(new ParamType(ParamType.SimpleType.text, "recbytes", null));

                AddOperation(new Operation(RoleMicrophone.OpRecBytesName, args, retVals, true));
            }

        }