Exemplo n.º 1
0
 private static void SetOmbiSettings(OmbiSettings ombiSettings, dynamic settings)
 {
     settings.DownloadClients.Ombi.Hostname    = ombiSettings.Hostname;
     settings.DownloadClients.Ombi.Port        = ombiSettings.Port;
     settings.DownloadClients.Ombi.ApiKey      = ombiSettings.ApiKey;
     settings.DownloadClients.Ombi.ApiUsername = ombiSettings.ApiUsername;
     settings.DownloadClients.Ombi.UseSSL      = ombiSettings.UseSSL;
     settings.DownloadClients.Ombi.Version     = ombiSettings.Version;
 }
Exemplo n.º 2
0
        public static void SetOmbi(TvShowsSettings tvShowsSettings, OmbiSettings ombiSettings)
        {
            SettingsFile.Write(settings =>
            {
                SetOmbiSettings(ombiSettings, settings);

                settings.TvShows.Client  = tvShowsSettings.Client;
                settings.TvShows.Command = tvShowsSettings.Command;
            });
        }
Exemplo n.º 3
0
        public static void SetOmbi(MoviesSettings movieSettings, OmbiSettings ombiSettings)
        {
            SettingsFile.Write(settings =>
            {
                SetOmbiSettings(ombiSettings, settings);

                settings.Movies.Client  = movieSettings.Client;
                settings.Movies.Command = movieSettings.Command;
            });
        }