using System.Collections.Generic; using System.Linq; namespace StardewModdingAPI.Common.Models { /// Specifies mods whose update-check info to fetch. internal class ModSearchModel { /********* ** Accessors *********/ /// The namespaced mod keys to search. public string[] ModKeys { get; set; } /********* ** Public methods *********/ /// Construct an empty instance. public ModSearchModel() { // needed for JSON deserialising } /// Construct an instance. /// The namespaced mod keys to search. public ModSearchModel(IEnumerable modKeys) { this.ModKeys = modKeys.ToArray(); } } }