C# 클래스 WhiteCore.Modules.Currency.BaseCurrencyConnector

상속: WhiteCore.Framework.Services.ConnectorBase, IBaseCurrencyConnector
파일 보기 프로젝트 열기: WhiteCoreSim/WhiteCore-Dev 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
InWorldCurrency string
RealCurrency string

공개 메소드들

메소드 설명
CalculateEstimatedCost ( uint amount ) : int
CheckMinMaxTransferSettings ( UUID agentID, uint amount ) : int
GetAgentRecentTransactions ( UUID agentID ) : List
GroupCurrencyTransfer ( UUID groupID, UUID userId, bool payUser, string toObjectName, UUID fromObjectID, string fromObjectName, int amount, string description, TransactionType type, UUID transactionID ) : bool
Initialize ( IGenericData GenericData, IConfigSource source, IRegistryCore registry, string defaultConnectionString ) : void
InworldCurrencyBuyTransaction ( UUID agentID, uint amount, IPEndPoint ep ) : bool
SendUpdateMoneyBalanceToClient ( UUID toID, UUID transactionID, string serverURI, uint balance, string message ) : void
UserCurrencyTransfer ( UUID toID, UUID fromID, uint amount, string description, TransactionType type, UUID transactionID ) : bool

비공개 메소드들

메소드 설명
AddGroupTransactionRecord ( UUID transID, string description, UUID groupID, string groupName, UUID userID, string userName, int amount, TransactionType transType, int groupBalance, int userBalance, string toObjectName, string fromObjectName, UUID regionID ) : void
AddTransactionRecord ( UUID transID, string description, UUID toID, UUID fromID, uint amount, TransactionType transType, uint toBalance, uint fromBalance, string toName, string fromName, string toObjectName, string fromObjectName, UUID regionID ) : void
GetConfig ( ) : WhiteCore.Modules.Currency.BaseCurrencyConfig
GetGroupBalance ( UUID groupID ) : WhiteCore.Framework.Modules.GroupBalance
GetGroupTransactions ( UUID groupID, UUID fromAgentID, int currentInterval, int intervalDays ) : List
GetPurchaseHistory ( System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
GetPurchaseHistory ( UUID UserID, System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
GetPurchaseHistory ( UUID toAgentID, int period, string periodType ) : List
GetPurchaseHistory ( int period, string periodType, uint start, uint count ) : List
GetTransactionHistory ( System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
GetTransactionHistory ( UUID toAgentID, UUID fromAgentID, System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
GetTransactionHistory ( UUID toAgentID, UUID fromAgentID, int period, string periodType ) : List
GetTransactionHistory ( UUID toAgentID, int period, string periodType ) : List
GetTransactionHistory ( int period, string periodType, uint start, uint count ) : List
GetUserCurrency ( UUID agentId ) : WhiteCore.Modules.Currency.UserCurrency
GroupCurrencyCreate ( UUID groupID ) : void
GroupCurrencyUpdate ( UUID groupID, WhiteCore.Framework.Modules.GroupBalance gb, bool full ) : void
NumberOfPurchases ( UUID UserID ) : uint
NumberOfTransactions ( UUID toAgentID, UUID fromAgentID ) : uint
ParseGroupBalance ( List queryResults ) : WhiteCore.Framework.Modules.GroupBalance
ParseGroupTransferQuery ( List query ) : List
ParsePurchaseQuery ( List query ) : List
ParseTransferQuery ( List query ) : List
StartTransactionPeriod ( int period, string periodType ) : System.DateTime
UserCurrencyCreate ( UUID agentId ) : void
UserCurrencyTransfer ( UUID toID, UUID fromID, UUID toObjectID, string toObjectName, UUID fromObjectID, string fromObjectName, uint amount, string description, TransactionType type, UUID transactionID ) : bool
UserCurrencyUpdate ( WhiteCore.Modules.Currency.UserCurrency agent, bool full ) : void

메소드 상세

CalculateEstimatedCost() 공개 메소드

public CalculateEstimatedCost ( uint amount ) : int
amount uint
리턴 int

CheckMinMaxTransferSettings() 공개 메소드

public CheckMinMaxTransferSettings ( UUID agentID, uint amount ) : int
agentID UUID
amount uint
리턴 int

GetAgentRecentTransactions() 공개 메소드

public GetAgentRecentTransactions ( UUID agentID ) : List
agentID UUID
리턴 List

GroupCurrencyTransfer() 공개 메소드

public GroupCurrencyTransfer ( UUID groupID, UUID userId, bool payUser, string toObjectName, UUID fromObjectID, string fromObjectName, int amount, string description, TransactionType type, UUID transactionID ) : bool
groupID UUID
userId UUID
payUser bool
toObjectName string
fromObjectID UUID
fromObjectName string
amount int
description string
type TransactionType
transactionID UUID
리턴 bool

Initialize() 공개 메소드

public Initialize ( IGenericData GenericData, IConfigSource source, IRegistryCore registry, string defaultConnectionString ) : void
GenericData IGenericData
source IConfigSource
registry IRegistryCore
defaultConnectionString string
리턴 void

InworldCurrencyBuyTransaction() 공개 메소드

public InworldCurrencyBuyTransaction ( UUID agentID, uint amount, IPEndPoint ep ) : bool
agentID UUID
amount uint
ep System.Net.IPEndPoint
리턴 bool

SendUpdateMoneyBalanceToClient() 공개 메소드

public SendUpdateMoneyBalanceToClient ( UUID toID, UUID transactionID, string serverURI, uint balance, string message ) : void
toID UUID
transactionID UUID
serverURI string
balance uint
message string
리턴 void

UserCurrencyTransfer() 공개 메소드

public UserCurrencyTransfer ( UUID toID, UUID fromID, uint amount, string description, TransactionType type, UUID transactionID ) : bool
toID UUID
fromID UUID
amount uint
description string
type TransactionType
transactionID UUID
리턴 bool

프로퍼티 상세

InWorldCurrency 공개적으로 프로퍼티

public string InWorldCurrency
리턴 string

RealCurrency 공개적으로 프로퍼티

public string RealCurrency
리턴 string