namespace PKHeX.Core { /// /// Result of a Legality Check /// public class CheckResult { internal readonly Severity Judgement = Severity.Valid; internal string Comment = LegalityCheckStrings.V; public bool Valid => Judgement >= Severity.Fishy; public string Rating => Judgement.Description(); internal readonly CheckIdentifier Identifier; internal CheckResult(CheckIdentifier i) => Identifier = i; internal CheckResult(Severity s, string c, CheckIdentifier i) { Judgement = s; Comment = c; Identifier = i; } } }