IW4M-Admin/SharedLibrary/Ban.cs
RaidMax c396428282 VERSION 1.1
CHANGELOG:
-fixed ban sorting ( and an overlooked bug )
-added kicks and temp-bans to penalty list
-bans are now named penalties
-readded pubbans page http://127.0.0.1:1624/pubbans
-updated RepZ profile link
2016-01-15 16:15:39 -06:00

40 lines
953 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SharedLibrary
{
public class Penalty
{
public Penalty(Type BType, String Reas, String TargID, String From, DateTime time, String ip)
{
Reason = Reas;
npID = TargID;
bannedByID = From;
When = time;
IP = ip;
this.BType = BType;
}
public String getWhen()
{
return When.ToString("MM/dd/yy HH:mm:ss"); ;
}
public enum Type
{
Kick,
TempBan,
Ban
}
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; }
public Type BType { get; private set; }
}
}