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
|
|
|
|
{
|
|
|
|
|
Reason = Reas;
|
|
|
|
|
npID = TargID;
|
|
|
|
|
bannedByID = From;
|
|
|
|
|
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
|
|
|
|
|
{
|
2016-01-16 17:58:24 -05:00
|
|
|
|
Warning,
|
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; }
|
|
|
|
|
public String npID { get; private set; }
|
|
|
|
|
public String bannedByID { get; private set; }
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|