diff --git a/src/chocolatey/infrastructure.app/configuration/ChocolateySource.cs b/src/chocolatey/infrastructure.app/configuration/ChocolateySource.cs index 5c163e98c6..a9eb754a16 100644 --- a/src/chocolatey/infrastructure.app/configuration/ChocolateySource.cs +++ b/src/chocolatey/infrastructure.app/configuration/ChocolateySource.cs @@ -18,8 +18,13 @@ namespace chocolatey.infrastructure.app.configuration public class ChocolateySource { public string Id { get; set; } + public string Value { get; set; } + public bool Disabled { get; set; } + public bool Authenticated { get; set; } + + public int Priority { get; set; } } } diff --git a/src/chocolatey/infrastructure.app/services/ChocolateyConfigSettingsService.cs b/src/chocolatey/infrastructure.app/services/ChocolateyConfigSettingsService.cs index 9093ec0d55..6942bdb443 100644 --- a/src/chocolatey/infrastructure.app/services/ChocolateyConfigSettingsService.cs +++ b/src/chocolatey/infrastructure.app/services/ChocolateyConfigSettingsService.cs @@ -61,8 +61,9 @@ public IEnumerable source_list(ChocolateyConfiguration configu list.Add(new ChocolateySource { Id = source.Id, Value = source.Value, - Disabled = source.Disabled, - Authenticated = string.IsNullOrWhiteSpace(source.Password) + Disabled = source.Disabled, + Authenticated = string.IsNullOrWhiteSpace(source.Password), + Priority = source.Priority }); } return list;