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; }
/// The stack trace when the deprecation warning was raised.
public string StackTrace { 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.
/// The stack trace when the deprecation warning was raised.
public DeprecationWarning(string modName, string nounPhrase, string version, DeprecationLevel level, string stackTrace)
{
this.ModName = modName;
this.NounPhrase = nounPhrase;
this.Version = version;
this.Level = level;
this.StackTrace = stackTrace;
}
}
}