초기커밋
This commit is contained in:
36
GameServer/Contents/Rental/Helper/RentalBusinessLogHelper.cs
Normal file
36
GameServer/Contents/Rental/Helper/RentalBusinessLogHelper.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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()
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user