Beispiel #1
0
        public AvailablePluginsResult GetAvailablePlugins()
        {
            AvailablePluginsResult result = new AvailablePluginsResult();

            result.AvailableLightSetupPlugins       = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableLightSetupPlugins);
            result.AvailableCapturePlugins          = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableCapturePlugins);
            result.AvailableColourExtractionPlugins = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableColourExtractionPlugins);
            result.AvailablePostProcessPlugins      = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailablePostProcessPlugins);
            result.AvailablePreOutputPlugins        = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailablePreOutputPlugins);
            result.AvailableOutputPlugins           = AfterglowSetup.GetAvailblePlugins(Program.Runtime.Setup.AvailableOutputPlugins);

            return(result);
        }
Beispiel #2
0
        public SettingsResponse Post(UpdateSettingsRequest request)
        {
            AfterglowSetup setup = Program.Runtime.Setup;

            setup.Port = request.Port;
            setup.RunOnWindowsStartup = request.RunOnWindowsStartup;
            setup.UserName            = request.UserName;
            setup.Password            = request.Password;
            setup.LogLevel            = request.LogLevel;

            Program.Runtime.Save();

            // Load the saved version
            return(GetSettings());
        }
Beispiel #3
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);
        }