2015-08-20 01:06:44 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibrary
|
|
|
|
|
{
|
2016-01-15 17:15:39 -05:00
|
|
|
|
public class Penalty
|
2015-08-20 01:06:44 -04:00
|
|
|
|
{
|
2016-01-15 17:15:39 -05:00
|
|
|
|
public Penalty(Type BType, String Reas, String TargID, String From, DateTime time, String ip)
|
2015-08-20 01:06:44 -04:00
|
|
|
|
{
|
2017-05-26 18:49:27 -04:00
|
|
|
|
Reason = Reas.Replace("!","");
|
2017-05-31 01:31:56 -04:00
|
|
|
|
OffenderID = TargID;
|
|
|
|
|
PenaltyOriginID = From;
|
2015-08-20 01:06:44 -04:00
|
|
|
|
When = time;
|
|
|
|
|
IP = ip;
|
2016-01-15 17:15:39 -05:00
|
|
|
|
this.BType = BType;
|
2015-08-20 01:06:44 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getWhen()
|
|
|
|
|
{
|
|
|
|
|
return When.ToString("MM/dd/yy HH:mm:ss"); ;
|
|
|
|
|
}
|
|
|
|
|
|
2016-01-15 17:15:39 -05:00
|
|
|
|
public enum Type
|
|
|
|
|
{
|
2017-05-31 01:31:56 -04:00
|
|
|
|
Report,
|
2016-01-16 17:58:24 -05:00
|
|
|
|
Warning,
|
2017-05-31 01:31:56 -04:00
|
|
|
|
Flag,
|
2016-01-15 17:15:39 -05:00
|
|
|
|
Kick,
|
|
|
|
|
TempBan,
|
|
|
|
|
Ban
|
|
|
|
|
}
|
|
|
|
|
|
2015-08-20 01:06:44 -04:00
|
|
|
|
public String Reason { get; private set; }
|
2017-05-31 01:31:56 -04:00
|
|
|
|
public String OffenderID { get; private set; }
|
|
|
|
|
public String PenaltyOriginID { get; private set; }
|
2015-08-20 01:06:44 -04:00
|
|
|
|
public DateTime When { get; private set; }
|
|
|
|
|
public String IP { get; private set; }
|
2016-01-15 17:15:39 -05:00
|
|
|
|
public Type BType { get; private set; }
|
2015-08-20 01:06:44 -04:00
|
|
|
|
}
|
|
|
|
|
}
|