144 lines
5.3 KiB
C#
144 lines
5.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
using ServerBase;
|
|
|
|
|
|
using SESSION_ID = System.Int32;
|
|
using WORLD_ID = System.UInt32;
|
|
using META_ID = System.UInt32;
|
|
using ENTITY_GUID = System.String;
|
|
using ACCOUNT_ID = System.String;
|
|
using OWNER_GUID = System.String;
|
|
using USER_GUID = System.String;
|
|
using CHARACTER_GUID = System.String;
|
|
using ITEM_GUID = System.String;
|
|
using LAND_AUCTION_NUMBER = System.Int32;
|
|
|
|
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class LandAuctionBidPriceRefundLogInfo : ILogInvoker.IInfo
|
|
{
|
|
//=============================================================================================
|
|
// 랜드 경매 식별 정보
|
|
//=============================================================================================
|
|
[JsonProperty("land_meta_id")]
|
|
public META_ID LandMetaId { get; set; } = 0;
|
|
|
|
[JsonProperty("auction_number")]
|
|
public LAND_AUCTION_NUMBER AuctionNumber { get; set; } = 0;
|
|
|
|
|
|
//=============================================================================================
|
|
// DB 식별 정보
|
|
//=============================================================================================
|
|
[JsonProperty]
|
|
public string LandAuctionRefundBidPricePK { get; set; } = string.Empty;
|
|
[JsonProperty]
|
|
public string LandAuctionRefundBidPriceSK { get; set; } = string.Empty;
|
|
|
|
|
|
//=============================================================================================
|
|
// 입찰 정보
|
|
//=============================================================================================
|
|
[JsonProperty("bid_user_guid")]
|
|
public USER_GUID BidUserGuid { get; set; } = string.Empty;
|
|
|
|
[JsonProperty("bid_type")]
|
|
public LandAuctionBidType BidType { get; set; } = 0;
|
|
|
|
[JsonProperty("bid_currency_typ")]
|
|
public CurrencyType BidCurrencyType { get; set; } = CurrencyType.None;
|
|
|
|
[JsonProperty("bid_price")]
|
|
public double BidPrice { get; set; } = 0;
|
|
|
|
|
|
//=============================================================================================
|
|
// 환급금 정보
|
|
//=============================================================================================
|
|
[JsonProperty("land_auction_result")]
|
|
public LandAuctionResult LandAuctionResult { get; set; } = LandAuctionResult.None; // 랜드 경매의 결과
|
|
|
|
[JsonProperty("refundable_normal_bid_price")]
|
|
public double RefundableNormalBidPrice { get; set; } = 0; // 본인의 일반 환급 가능한 입찰금
|
|
|
|
[JsonProperty("refundable_blind_bid_price")]
|
|
public double RefundableBlindBidPrice { get; set; } = 0; // 본인의 블라인드 환급 가능한 입찰금
|
|
|
|
|
|
//=====================================================================================
|
|
// 로그 생성용 객체 정의
|
|
//=====================================================================================
|
|
public LandAuctionBidPriceRefundLogInfo()
|
|
: base()
|
|
{
|
|
}
|
|
|
|
public void setInfo(LandAuctionBidPriceRefundLogInfo logInfo)
|
|
{
|
|
LandMetaId = logInfo.LandMetaId;
|
|
AuctionNumber = logInfo.AuctionNumber;
|
|
|
|
LandAuctionRefundBidPricePK = logInfo.LandAuctionRefundBidPricePK;
|
|
LandAuctionRefundBidPriceSK = logInfo.LandAuctionRefundBidPriceSK;
|
|
|
|
BidUserGuid = logInfo.BidUserGuid;
|
|
BidType = logInfo.BidType;
|
|
BidCurrencyType = logInfo.BidCurrencyType;
|
|
BidPrice = logInfo.BidPrice;
|
|
|
|
LandAuctionResult = logInfo.LandAuctionResult;
|
|
RefundableNormalBidPrice = logInfo.RefundableNormalBidPrice;
|
|
RefundableBlindBidPrice = logInfo.RefundableBlindBidPrice;
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 출력용 객체 정의
|
|
//=====================================================================================
|
|
public LandAuctionBidPriceRefundLogInfo(ILogInvoker parent, LandAuctionBidPriceRefundLogInfo logInfo)
|
|
: base(parent)
|
|
{
|
|
if (null != logInfo)
|
|
{
|
|
setInfo(logInfo);
|
|
}
|
|
}
|
|
|
|
//=====================================================================================
|
|
// 로그 설정용 함수
|
|
//=====================================================================================
|
|
public void setLogProperty( META_ID landMetaId, LAND_AUCTION_NUMBER auctionNumber
|
|
, string landAuctionRefundBidPricePK, string landAuctionRefundBidPriceSK
|
|
, USER_GUID bidUserGuid
|
|
, LandAuctionBidType bidType, CurrencyType bidCurrencyType, double bidPrice
|
|
, LandAuctionResult auctionResult
|
|
, double refundableNormalBidPrice, double refundableBlindBidPrice )
|
|
{
|
|
LandMetaId = landMetaId;
|
|
AuctionNumber = auctionNumber;
|
|
|
|
LandAuctionRefundBidPricePK = landAuctionRefundBidPricePK;
|
|
LandAuctionRefundBidPriceSK = landAuctionRefundBidPriceSK;
|
|
|
|
BidUserGuid = bidUserGuid;
|
|
BidType = bidType;
|
|
BidCurrencyType = bidCurrencyType;
|
|
BidPrice = bidPrice;
|
|
|
|
LandAuctionResult = auctionResult;
|
|
RefundableNormalBidPrice = refundableNormalBidPrice;
|
|
RefundableBlindBidPrice = refundableBlindBidPrice;
|
|
}
|
|
}
|