Files
caliverse_server/ServerCommon/1. Define/BusinessLog/Domain/RentalLogInfo.cs
2025-05-01 07:20:41 +09:00

66 lines
1.8 KiB
C#

using Newtonsoft.Json;
using ServerBase;
namespace ServerCommon.BusinessLogDomain;
public class RentalLogInfo : ILogInvoker.IInfo
{
[JsonProperty]
public int LandMetaId { get; set; }
[JsonProperty]
public int BuildingMetaId { get; set; }
[JsonProperty]
public int Floor { get; set; }
[JsonProperty]
public string RenteeUserGuid { get; set; } = string.Empty;
[JsonProperty]
public string MyhomeGuid { get; set; } = string.Empty;
[JsonProperty]
public int RentalPeriod { get; set; }
[JsonProperty]
public DateTime RentalStartTime { get; set; } = new();
[JsonProperty]
public DateTime RentalFinishTime { get; set; } = new();
public RentalLogInfo()
: base()
{ }
public RentalLogInfo(ILogInvoker parent, RentalLogInfo logParam)
: base(parent)
{
if (null != logParam)
{
setRentalInfo(logParam);
}
}
public void setRentalInfo(RentalLogInfo logInfo)
{
LandMetaId = logInfo.LandMetaId;
BuildingMetaId = logInfo.BuildingMetaId;
Floor = logInfo.Floor;
RenteeUserGuid = logInfo.RenteeUserGuid;
MyhomeGuid = logInfo.MyhomeGuid;
RentalPeriod = logInfo.RentalPeriod;
RentalStartTime = logInfo.RentalStartTime;
RentalFinishTime = logInfo.RentalFinishTime;
}
public void setLogProperty(int landMetaId, int buildingMetaId, int floor, string renteeUserGuid, string myhomeGuid, int rentalPeriod, DateTime rentalStartTime, DateTime rentalFinishTime)
{
LandMetaId = landMetaId;
BuildingMetaId = buildingMetaId;
Floor = floor;
RenteeUserGuid = renteeUserGuid;
MyhomeGuid = myhomeGuid;
RentalPeriod = rentalPeriod;
RentalStartTime = rentalStartTime;
RentalFinishTime = rentalFinishTime;
}
}