From 7fc9c71f72aae33a8e0aab9f82a19bcc7a5a9ec1 Mon Sep 17 00:00:00 2001 From: Hendy Date: Mon, 26 Nov 2018 23:10:41 +0000 Subject: [PATCH] comments --- src/Our.Umbraco.Look/Models/TagQuery.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/Our.Umbraco.Look/Models/TagQuery.cs b/src/Our.Umbraco.Look/Models/TagQuery.cs index 48e14d6..76256ab 100644 --- a/src/Our.Umbraco.Look/Models/TagQuery.cs +++ b/src/Our.Umbraco.Look/Models/TagQuery.cs @@ -5,10 +5,19 @@ namespace Our.Umbraco.Look.Models { public class TagQuery { + /// + /// Must have all these tags + /// public LookTag[] All { get; set; } + /// + /// Must have at least one of these tags + /// public LookTag[] Any { get; set; } + /// + /// Must not have any of these tags + /// public LookTag[] Not { get; set; } /// @@ -52,6 +61,11 @@ public static LookTag[] MakeTags(params string[] tags) return lookTags.ToArray(); } + /// + /// Helper to simplify the construction of LookTag array + /// + /// + /// public static LookTag[] MakeTags(IEnumerable tags) { return TagQuery.MakeTags(tags.ToArray());