namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
{
/// Specifies the identifiers for a mod to match.
public class ModSearchEntryModel
{
/*********
** Accessors
*********/
/// The unique mod ID.
public string ID { get; set; }
/// The namespaced mod update keys (if available).
public string[] UpdateKeys { get; set; }
/*********
** Public methods
*********/
/// Construct an empty instance.
public ModSearchEntryModel()
{
// needed for JSON deserialising
}
/// Construct an instance.
/// The unique mod ID.
/// The namespaced mod update keys (if available).
public ModSearchEntryModel(string id, string[] updateKeys)
{
this.ID = id;
this.UpdateKeys = updateKeys ?? new string[0];
}
}
}