Exemple #1
0
        public PluginTypesResponse Post(PluginTypesRequest request)
        {
            PluginTypesResponse result = new PluginTypesResponse();

            switch (request.PluginType)
            {
            case 1:
                result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableLightSetupPlugins);
                break;

            case 2:
                result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableCapturePlugins);
                break;

            case 3:
                result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableColourExtractionPlugins);
                break;

            case 4:
                result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailablePostProcessPlugins);
                break;

            case 5:
                result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailablePreOutputPlugins);
                break;

            case 6:
                result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableOutputPlugins);
                break;

            default:
                result.Plugins = (new List <AvailablePluginDetails>()).AsEnumerable();
                break;
            }

            return(result);
        }
        public PluginTypesResponse Post(PluginTypesRequest request)
        {
            PluginTypesResponse result = new PluginTypesResponse();

            switch (request.PluginType)
            {
                case 1:
                    result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableLightSetupPlugins);
                    break;
                case 2:
                    result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableCapturePlugins);
                    break;
                case 3:
                    result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableColourExtractionPlugins);
                    break;
                case 4:
                    result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailablePostProcessPlugins);
                    break;
                case 5:
                    result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailablePreOutputPlugins);
                    break;
                case 6:
                    result.Plugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableOutputPlugins);
                    break;
                default:
                    result.Plugins = (new List<AvailablePluginDetails>()).AsEnumerable();
                    break;
            }

            return result;
        }