78 lines
2.4 KiB
C#
78 lines
2.4 KiB
C#
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
|
|
|
|
using META_ID = System.UInt32;
|
|
using ANCHOR_GUID = System.String;
|
|
using BEACON_GUID = System.String;
|
|
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class BeaconShopLogData : ILogInvoker.IInfo
|
|
{
|
|
public BeaconShopLogData()
|
|
: base()
|
|
{ }
|
|
|
|
[JsonProperty]
|
|
public string ItemGuid { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public int TagId { get; set; } = 0;
|
|
[JsonProperty]
|
|
public string BeaconGuid { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string BeaconNickName { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string BeaconTitle { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public int BeaconBodyItemMetaId { get; set; } = 0;
|
|
[JsonProperty]
|
|
public double PriceForUnit { get; set; } = 0;
|
|
[JsonProperty]
|
|
public int Amount { get; set; } = 0;
|
|
[JsonProperty]
|
|
public string OwnerGuid { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string OwnerNickName { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string BeaconMyHomeGuid { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public DateTime SellingFinishTime { get; set; } = new();
|
|
[JsonProperty]
|
|
public string BuyerGuid { get; set; } = string.Empty;
|
|
|
|
//=====================================================================================
|
|
// 로그 생성용 객체 정의
|
|
//=====================================================================================
|
|
|
|
public void setItemInfo(BeaconShopLogData logData)
|
|
{
|
|
TagId = logData.TagId;
|
|
BeaconGuid = logData.BeaconGuid;
|
|
BeaconNickName = logData.BeaconNickName;
|
|
BeaconTitle = logData.BeaconTitle;
|
|
BeaconBodyItemMetaId = logData.BeaconBodyItemMetaId;
|
|
PriceForUnit = logData.PriceForUnit;
|
|
Amount = logData.Amount;
|
|
OwnerGuid = logData.OwnerGuid;
|
|
OwnerNickName = logData.OwnerNickName;
|
|
BeaconMyHomeGuid = logData.BeaconMyHomeGuid;
|
|
SellingFinishTime = logData.SellingFinishTime;
|
|
BuyerGuid = logData.BuyerGuid;
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 출력용 객체 정의
|
|
//=====================================================================================
|
|
public BeaconShopLogData(ILogInvoker parent, BeaconShopLogData itemParam)
|
|
: base(parent)
|
|
{
|
|
setItemInfo(itemParam);
|
|
}
|
|
}
|