Files
caliverse_server/GameServer/Contents/Rental/Helper/RentalBusinessLogHelper.cs
2025-05-01 07:20:41 +09:00

37 lines
1.2 KiB
C#

using ServerCommon.BusinessLogDomain;
using ServerCommon;
using ServerCore; using ServerBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GameServer
{
internal static class RentalBusinessLogHelper
{
public static RentalLogInfo toRentalLogInfo(this RentFloorRequestInfo rentFloorRequestInfo)
{
var rental_log_info = new RentalLogInfo();
rental_log_info.setRentalInfo(rentFloorRequestInfo);
return rental_log_info;
}
public static void setRentalInfo(this RentalLogInfo log, RentFloorRequestInfo rentFloorRequestInfo)
{
log.setLogProperty(
rentFloorRequestInfo.LandId,
rentFloorRequestInfo.BuildingId,
rentFloorRequestInfo.Floor,
rentFloorRequestInfo.OwnerGuid,
rentFloorRequestInfo.MyhomeGuid,
rentFloorRequestInfo.RentalPeriod,
rentFloorRequestInfo.RentalStartTime.ToDateTime(),
rentFloorRequestInfo.RentalFinishTime.ToDateTime()
);
}
}
}