using System.Linq; namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi { /// Specifies mods whose update-check info to fetch. public class ModSearchModel { /********* ** Accessors *********/ /// 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 deserializing } /// Construct an instance. /// The mods to search. /// Whether to include extended metadata for each mod. public ModSearchModel(ModSearchEntryModel[] mods, bool includeExtendedMetadata) { this.Mods = mods.ToArray(); this.IncludeExtendedMetadata = includeExtendedMetadata; } } }