2018-03-09 03:01:12 -05:00
|
|
|
|
using System;
|
|
|
|
|
|
2018-04-08 02:44:42 -04:00
|
|
|
|
namespace SharedLibraryCore.Dtos
|
2018-03-09 03:01:12 -05:00
|
|
|
|
{
|
|
|
|
|
public class EventInfo
|
|
|
|
|
{
|
|
|
|
|
public EventInfo(EventType Ty, EventVersion V, string M, string T, string O, string Ta)
|
|
|
|
|
{
|
|
|
|
|
Type = Ty;
|
|
|
|
|
Version = V;
|
|
|
|
|
Message = System.Web.HttpUtility.HtmlEncode(M);
|
|
|
|
|
Title = T;
|
|
|
|
|
Origin = System.Web.HttpUtility.HtmlEncode(O);
|
|
|
|
|
Target = System.Web.HttpUtility.HtmlEncode(Ta);
|
|
|
|
|
|
|
|
|
|
ID = Math.Abs(DateTime.Now.GetHashCode());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum EventType
|
|
|
|
|
{
|
|
|
|
|
NOTIFICATION,
|
|
|
|
|
STATUS,
|
|
|
|
|
ALERT,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum EventVersion
|
|
|
|
|
{
|
|
|
|
|
IW4MAdmin
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public EventType Type;
|
|
|
|
|
public EventVersion Version;
|
|
|
|
|
public string Message;
|
|
|
|
|
public string Title;
|
|
|
|
|
public string Origin;
|
|
|
|
|
public string Target;
|
|
|
|
|
public int ID;
|
|
|
|
|
}
|
|
|
|
|
}
|