Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendy committed Nov 26, 2018
1 parent 3ca86e6 commit 7fc9c71
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Our.Umbraco.Look/Models/TagQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ namespace Our.Umbraco.Look.Models
{
public class TagQuery
{
/// <summary>
/// Must have all these tags
/// </summary>
public LookTag[] All { get; set; }

/// <summary>
/// Must have at least one of these tags
/// </summary>
public LookTag[] Any { get; set; }

/// <summary>
/// Must not have any of these tags
/// </summary>
public LookTag[] Not { get; set; }

/// <summary>
Expand Down Expand Up @@ -52,6 +61,11 @@ public static LookTag[] MakeTags(params string[] tags)
return lookTags.ToArray();
}

/// <summary>
/// Helper to simplify the construction of LookTag array
/// </summary>
/// <param name="tags"></param>
/// <returns></returns>
public static LookTag[] MakeTags(IEnumerable<string> tags)
{
return TagQuery.MakeTags(tags.ToArray());
Expand Down

0 comments on commit 7fc9c71

Please sign in to comment.