internal ExpungeRecord(ExpungeReason reason, string explanation, string author, DateTimeOffset posted, int power) { Reason = reason; Explanation = explanation; Author = author; Posted = posted; Power = power; }
internal ExpungeRecord(ExpungeReason reason, string explanation, string author, DateTimeOffset posted, int power) { this.Reason = reason; this.Explanation = explanation; this.Author = author; this.Posted = posted; this.Power = power; }
public ExpungeReasonVM(ExpungeReason reason) { this.Name = reason.ToFriendlyNameString(); this.Description = reason.GetDescription(); this.Key = reason; }
public static string GetDescription(this ExpungeReason that) => that.ToFriendlyNameString(name => LocalizedStrings.ExpungeReason[name].GetValue("Description"));
public static string ToFriendlyNameString(this ExpungeReason that) => that.ToFriendlyNameString(name => LocalizedStrings.ExpungeReason[name].GetValue("Name"));