using System; namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi { /// Metadata about a mod. public class ModEntryModel { /********* ** Accessors *********/ /// The mod's unique ID (if known). public string ID { get; } /// The update version recommended by the web API based on its version update and mapping rules. public ModEntryVersionModel? SuggestedUpdate { get; set; } /// Optional extended data which isn't needed for update checks. public ModExtendedMetadataModel? Metadata { get; set; } /// The errors that occurred while fetching update data. public string[] Errors { get; set; } = Array.Empty(); /********* ** Public methods *********/ /// Construct an instance. /// The mod's unique ID (if known). public ModEntryModel(string id) { this.ID = id; } } }