51 lines
1.4 KiB
C#
51 lines
1.4 KiB
C#
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerBase;
|
|
|
|
|
|
using META_ID = System.UInt32;
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class PackageRepeatData : ILogInvoker.IInfo
|
|
{
|
|
public PackageRepeatData()
|
|
: base()
|
|
{ }
|
|
|
|
[JsonProperty]
|
|
public string orderGuid { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public META_ID productMetaId { get; set; } = 0;
|
|
[JsonProperty]
|
|
public int leftCount { get; set; } = 0;
|
|
[JsonProperty]
|
|
public DateTime nextGiveTime { get; set; } = new();
|
|
|
|
//=====================================================================================
|
|
// 로그 생성용 객체 정의
|
|
//=====================================================================================
|
|
|
|
public void setItemInfo(PackageRepeatData logData)
|
|
{
|
|
orderGuid = logData.orderGuid;
|
|
productMetaId = logData.productMetaId;
|
|
leftCount = logData.leftCount;
|
|
nextGiveTime = logData.nextGiveTime;
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 출력용 객체 정의
|
|
//=====================================================================================
|
|
public PackageRepeatData(ILogInvoker parent, PackageRepeatData itemParam)
|
|
: base(parent)
|
|
{
|
|
if (null != itemParam)
|
|
{
|
|
setItemInfo(itemParam);
|
|
}
|
|
}
|
|
}
|