コード例 #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;
 }
コード例 #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;
            });
        }
コード例 #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;
            });
        }