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; }
public static void SetOmbi(TvShowsSettings tvShowsSettings, OmbiSettings ombiSettings) { SettingsFile.Write(settings => { SetOmbiSettings(ombiSettings, settings); settings.TvShows.Client = tvShowsSettings.Client; settings.TvShows.Command = tvShowsSettings.Command; }); }
public static void SetOmbi(MoviesSettings movieSettings, OmbiSettings ombiSettings) { SettingsFile.Write(settings => { SetOmbiSettings(ombiSettings, settings); settings.Movies.Client = movieSettings.Client; settings.Movies.Command = movieSettings.Command; }); }