using System.Collections.Generic;
using System.Linq;
namespace StardewModdingAPI.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.
/// This constructed is needed for JSON deserialisation.
public ModSearchModel() { }
/// Construct an valid instance.
/// The namespaced mod keys to search.
public ModSearchModel(IEnumerable modKeys)
{
this.ModKeys = modKeys.ToArray();
}
}
}