using System; using System.Linq; namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi { /// Specifies mods whose update-check info to fetch. public class ModSearchModel { /********* ** Accessors *********/ /// The namespaced mod keys to search. [Obsolete] public string[] ModKeys { get; set; } /// The mods for which to find data. public ModSearchEntryModel[] Mods { get; set; } /// Whether to include extended metadata for each mod. public bool IncludeExtendedMetadata { get; set; } /********* ** Public methods *********/ /// Construct an empty instance. public ModSearchModel() { // needed for JSON deserialising } /// Construct an instance. /// The mods to search. public ModSearchModel(ModSearchEntryModel[] mods) { this.Mods = mods.ToArray(); } } }