Skip to content

Commit

Permalink
(chocolateyGH-71) Add priority property to ChocolateySource
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Simpson committed Sep 24, 2015
1 parent 7f2f544 commit de18ba8
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 de18ba8

Please sign in to comment.