Files
2025-05-01 07:20:41 +09:00

54 lines
1.6 KiB
C#

using Newtonsoft.Json;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class MailExpiredLogData : ILogInvoker.IInfo
{
public MailExpiredLogData()
: base()
{ }
[JsonProperty]
public string OrderGuid { get; set; } = string.Empty;
[JsonProperty]
public int ProductMetaId { get; set; } = 0;
[JsonProperty]
public DateTime NextGiveTime { get; set; } = new();
[JsonProperty]
public DateTime ExpireTime { get; set; } = new();
[JsonProperty]
public DateTime CurrencyTime { get; set; } = new();
[JsonProperty]
public int RepeatLeftCount { get; set; } = 0;
//=====================================================================================
// 로그 생성용 객체 정의
//=====================================================================================
public void setItemInfo(MailExpiredLogData logData)
{
OrderGuid = logData.OrderGuid;
ProductMetaId = logData.ProductMetaId;
NextGiveTime = logData.NextGiveTime;
ExpireTime = logData.ExpireTime;
CurrencyTime = logData.CurrencyTime;
RepeatLeftCount = logData.RepeatLeftCount;
}
//=====================================================================================
// 로그 출력용 객체 정의
//=====================================================================================
public MailExpiredLogData(ILogInvoker parent, MailExpiredLogData itemParam)
: base(parent)
{
if (null != itemParam)
{
setItemInfo(itemParam);
}
}
}