public SettingsGetResponse() { App = new App(); Format = new Format(); Peloton = new SettingsPelotonGetResponse(); Garmin = new SettingsGarminGetResponse(); }
public SettingsGetResponse(Settings settings) { App = settings.App; Format = settings.Format; Peloton = new SettingsPelotonGetResponse() { Email = settings.Peloton.Email, Password = settings.Peloton.Password, ExcludeWorkoutTypes = settings.Peloton.ExcludeWorkoutTypes, NumWorkoutsToDownload = settings.Peloton.NumWorkoutsToDownload, IsPasswordSet = !string.IsNullOrEmpty(settings.Peloton.Password) }; Garmin = new SettingsGarminGetResponse() { Email = settings.Garmin.Email, Password = settings.Garmin.Password, FormatToUpload = settings.Garmin.FormatToUpload, Upload = settings.Garmin.Upload, UploadStrategy = settings.Garmin.UploadStrategy, IsPasswordSet = !string.IsNullOrEmpty(settings.Garmin.Password) }; }