diff --git a/src/dotnet/Den.Dev.Grunt/Den.Dev.Grunt/Core/Modules/HaloInfinite/UgcDiscoveryModule.cs b/src/dotnet/Den.Dev.Grunt/Den.Dev.Grunt/Core/Modules/HaloInfinite/UgcDiscoveryModule.cs index b4f81e7..99adf7d 100644 --- a/src/dotnet/Den.Dev.Grunt/Den.Dev.Grunt/Core/Modules/HaloInfinite/UgcDiscoveryModule.cs +++ b/src/dotnet/Den.Dev.Grunt/Den.Dev.Grunt/Core/Modules/HaloInfinite/UgcDiscoveryModule.cs @@ -5,6 +5,7 @@ // The underlying API powering Den.Dev.Grunt is managed by Halo Studios and Microsoft. This wrapper is not endorsed by Halo Studios or Microsoft. // +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; @@ -350,8 +351,17 @@ public async Task> /// Determines whether results are ordered in descending or ascending order. /// List of asset kinds to be included in the search. /// The author's numeric XUID. + /// Search term. Optional. + /// List of tags. Multiple tags are applied with an OR operator. Optional. + /// Minimum average rating between 0 and 5. Optional. + /// Minimum date created. Optional. + /// Maximum date created. Optional. + /// Minimum date modified. Optional. + /// Maximum date modified. Optional. + /// Minimum date published. Optional. + /// Maximum date published. Optional. /// If successful, returns an instance of SearchResultsContainer containing assets. Otherwise, returns null. - public async Task> Search(int start = 0, int count = 12, bool includeTimes = true, string sort = "DatePublishedUtc", ResultOrder order = ResultOrder.Desc, List? assetKinds = null, string? author = null) + public async Task> Search(int start = 0, int count = 12, bool includeTimes = true, string sort = "DatePublishedUtc", ResultOrder order = ResultOrder.Desc, List? assetKinds = null, string? author = null, string? term = null, List? tags = null, decimal? averageRatingMin = null, DateTime? fromDateCreatedUtc = null, DateTime? toDateCreatedUtc = null, DateTime? fromDateModifiedUtc = null, DateTime? toDateModifiedUtc = null, DateTime? fromDatePublishedUtc = null, DateTime? toDatePublishedUtc = null) { var baseSearchString = $"/hi/search?start={start}&count={count}&include-times={includeTimes}&sort={sort}&order={order}&"; @@ -366,6 +376,54 @@ public async Task( baseSearchString, useClearance: true);