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() ); } } }