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