C# Класс WhiteCore.Modules.Currency.BaseCurrencyConnector

Наследование: WhiteCore.Framework.Services.ConnectorBase, IBaseCurrencyConnector
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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