From de18ba81432a252f21d72994e650d4df3e220688 Mon Sep 17 00:00:00 2001 From: Richard Simpson Date: Thu, 24 Sep 2015 17:35:16 -0500 Subject: [PATCH] (GH-71) Add priority property to ChocolateySource --- .../infrastructure.app/configuration/ChocolateySource.cs | 5 +++++ .../services/ChocolateyConfigSettingsService.cs | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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;