예제 #1
0
        public ProgramSetJsonModel CreateProgramSet(string programSetName, string programName, IEnumerable <string> zoneNames, bool sync = true,
                                                    ISV isv = null, dynamic startingParameters = null)
        {
            var        model      = new ProgramSetJsonModel();
            ProgramSet programSet = null;

            ZLMAction(
                zlm =>
                programSet =
                    zlm.CreateProgramSet(programSetName, programName, zoneNames, sync, isv, startingParameters)
                );

            model = programSet.ToJsonModel <ProgramSet, ProgramSetJsonModel>();
            return(model);
        }