68 lines
1.7 KiB
C#
68 lines
1.7 KiB
C#
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerCore; using ServerBase;
|
|
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class BuildingProfitLogInfo : ILogInvoker.IInfo
|
|
{
|
|
[JsonProperty]
|
|
public int BuildingMetaId { get; set; }
|
|
[JsonProperty]
|
|
public int Floor { get; set; }
|
|
[JsonProperty]
|
|
public CurrencyType CurrencyType { get; set; } = CurrencyType.None;
|
|
[JsonProperty]
|
|
public AmountDeltaType AmountDeltaType { get; private set; } = AmountDeltaType.None;
|
|
[JsonProperty]
|
|
public double DeltaAmount { get; private set; } = 0.0d;
|
|
[JsonProperty]
|
|
public double CurrencyAmount { get; private set; } = 0.0d;
|
|
|
|
|
|
public BuildingProfitLogInfo()
|
|
: base()
|
|
{ }
|
|
|
|
public BuildingProfitLogInfo(ILogInvoker parent, BuildingProfitLogInfo logParam)
|
|
: base(parent)
|
|
{
|
|
if (null != logParam)
|
|
{
|
|
setBuildingInfo(logParam);
|
|
}
|
|
}
|
|
|
|
public void setBuildingInfo(BuildingProfitLogInfo logInfo)
|
|
{
|
|
BuildingMetaId = logInfo.BuildingMetaId;
|
|
Floor = logInfo.Floor;
|
|
CurrencyType = logInfo.CurrencyType;
|
|
AmountDeltaType = logInfo.AmountDeltaType;
|
|
DeltaAmount = logInfo.DeltaAmount;
|
|
CurrencyAmount = logInfo.CurrencyAmount;
|
|
}
|
|
|
|
public void setLogProperty(int buildingMetaId, int floor, CurrencyType currencyType, AmountDeltaType amountDeltaType, double deltaAmount, double currencyAmount)
|
|
{
|
|
BuildingMetaId = buildingMetaId;
|
|
Floor = floor;
|
|
CurrencyType = currencyType;
|
|
AmountDeltaType = amountDeltaType;
|
|
DeltaAmount = deltaAmount;
|
|
CurrencyAmount = currencyAmount;
|
|
}
|
|
}
|