Skip to content

Commit

Permalink
Merge pull request #426 from RichiCoder1/feature/CHOCO-71_Add_Priorit…
Browse files Browse the repository at this point in the history
…y_To_List_Source

(GH-71) Add priority property to ChocolateySource
  • Loading branch information
ferventcoder committed Sep 24, 2015
2 parents 7f2f544 + de18ba8 commit 44b1f32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ public IEnumerable<ChocolateySource> 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;
Expand Down

0 comments on commit 44b1f32

Please sign in to comment.