82 lines
2.6 KiB
C#
82 lines
2.6 KiB
C#
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerBase;
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class MailLogData : ILogInvoker.IInfo
|
|
{
|
|
public MailLogData()
|
|
: base()
|
|
{ }
|
|
|
|
[JsonProperty]
|
|
public string MailGuid { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string Title { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string Text { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public bool IsSystemMail { get; set; } = false;
|
|
[JsonProperty]
|
|
public bool IsReadMail { get; set; } = false;
|
|
[JsonProperty]
|
|
public bool IsGetItem { get; set; } = false;
|
|
[JsonProperty]
|
|
public string SenderNickname { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string SenderGuid { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string ReceiverNickname { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string ReceiverGuid { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public DateTime CreateTime { get; set; } = new();
|
|
[JsonProperty]
|
|
public DateTime ExpireTime { get; set; } = new();
|
|
[JsonProperty]
|
|
public bool IsTextByMetaData { get; set; } = false;
|
|
[JsonProperty]
|
|
public string packageOrderId { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public List<MailItem> ItemList { get; set; } = new();
|
|
|
|
|
|
//=====================================================================================
|
|
// 로그 생성용 객체 정의
|
|
//=====================================================================================
|
|
|
|
public void setItemInfo(MailLogData logData)
|
|
{
|
|
MailGuid = logData.MailGuid;
|
|
Title = logData.Title;
|
|
Text = logData.Text;
|
|
IsSystemMail = logData.IsSystemMail;
|
|
IsReadMail = logData.IsReadMail;
|
|
IsGetItem = logData.IsGetItem;
|
|
SenderNickname = logData.SenderNickname;
|
|
SenderGuid = logData.SenderGuid;
|
|
ReceiverNickname = logData.ReceiverNickname;
|
|
ReceiverGuid = logData.ReceiverGuid;
|
|
CreateTime = logData.CreateTime;
|
|
ExpireTime = logData.ExpireTime;
|
|
IsTextByMetaData = logData.IsTextByMetaData;
|
|
packageOrderId = logData.packageOrderId;
|
|
ItemList.AddRange(logData.ItemList);
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 출력용 객체 정의
|
|
//=====================================================================================
|
|
public MailLogData(ILogInvoker parent, MailLogData itemParam)
|
|
: base(parent)
|
|
{
|
|
if (null != itemParam)
|
|
{
|
|
setItemInfo(itemParam);
|
|
}
|
|
}
|
|
}
|