Example #1
0
 internal ExpungeRecord(ExpungeReason reason, string explanation, string author, DateTimeOffset posted, int power)
 {
     Reason      = reason;
     Explanation = explanation;
     Author      = author;
     Posted      = posted;
     Power       = power;
 }
Example #2
0
 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;
 }
Example #3
0
 public ExpungeReasonVM(ExpungeReason reason)
 {
     this.Name        = reason.ToFriendlyNameString();
     this.Description = reason.GetDescription();
     this.Key         = reason;
 }
Example #4
0
 public static string GetDescription(this ExpungeReason that)
 => that.ToFriendlyNameString(name => LocalizedStrings.ExpungeReason[name].GetValue("Description"));
Example #5
0
 public static string ToFriendlyNameString(this ExpungeReason that)
 => that.ToFriendlyNameString(name => LocalizedStrings.ExpungeReason[name].GetValue("Name"));