namespace StardewModdingAPI.Framework { /// A deprecation warning for a mod. internal class DeprecationWarning { /********* ** Accessors *********/ /// The affected mod's display name. public string ModName { get; } /// A noun phrase describing what is deprecated. public string NounPhrase { get; } /// The SMAPI version which deprecated it. public string Version { get; } /// The deprecation level for the affected code. public DeprecationLevel Level { get; } /********* ** Public methods *********/ /// Construct an instance. /// The affected mod's display name. /// A noun phrase describing what is deprecated. /// The SMAPI version which deprecated it. /// The deprecation level for the affected code. public DeprecationWarning(string modName, string nounPhrase, string version, DeprecationLevel level) { this.ModName = modName; this.NounPhrase = nounPhrase; this.Version = version; this.Level = level; } } }