38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class CaliumEchoSystemFailLogData : ILogInvoker.IInfo
|
|
{
|
|
public CaliumEchoSystemFailLogData() : base() {}
|
|
|
|
[JsonProperty] public string FailCode { get; set; } = string.Empty;
|
|
[JsonProperty] public List<string> FailMessages { get; set; } = new();
|
|
[JsonProperty] public bool ReTry { get; set; } = false;
|
|
[JsonProperty] public DateTime FailTime { get; set; } = DateTimeHelper.Current;
|
|
|
|
[JsonProperty] public CaliumEventData? EventData { get; set; }
|
|
|
|
public void setInfo(CaliumEchoSystemFailLogData log)
|
|
{
|
|
FailCode = log.FailCode;
|
|
FailMessages = log.FailMessages;
|
|
ReTry = log.ReTry;
|
|
FailTime = log.FailTime;
|
|
|
|
EventData = EventData;
|
|
}
|
|
|
|
public CaliumEchoSystemFailLogData(ILogInvoker parent, CaliumEchoSystemFailLogData failLog)
|
|
: base(parent)
|
|
{
|
|
if (null != failLog)
|
|
{
|
|
setInfo(failLog);
|
|
}
|
|
}
|
|
} |