C# Class Universe.Modules.Currency.BaseCurrencyConnector

Inheritance: Universe.Framework.Services.ConnectorBase, ISimpleCurrencyConnector
Show file Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Properties

Property Type Description
InWorldCurrency string
RealCurrency string

Public Methods

Method Description
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

Private Methods

Method Description
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 ( ) : BaseCurrencyConfig
GetGroupBalance ( UUID groupID ) : 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 ) : UserCurrency
GroupCurrencyCreate ( UUID groupID ) : void
GroupCurrencyUpdate ( UUID groupID, GroupBalance gb, bool full ) : void
NumberOfPurchases ( UUID UserID ) : uint
NumberOfTransactions ( UUID toAgentID, UUID fromAgentID ) : uint
ParseGroupBalance ( List queryResults ) : 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 ( UserCurrency agent, bool full ) : void

Method Details

CalculateEstimatedCost() public method

public CalculateEstimatedCost ( uint amount ) : int
amount uint
return int

CheckMinMaxTransferSettings() public method

public CheckMinMaxTransferSettings ( UUID agentID, uint amount ) : int
agentID UUID
amount uint
return int

GetAgentRecentTransactions() public method

public GetAgentRecentTransactions ( UUID agentID ) : List
agentID UUID
return List

GroupCurrencyTransfer() public method

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
return bool

Initialize() public method

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

InworldCurrencyBuyTransaction() public method

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

SendUpdateMoneyBalanceToClient() public method

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

UserCurrencyTransfer() public method

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
return bool

Property Details

InWorldCurrency public property

public string InWorldCurrency
return string

RealCurrency public property

public string RealCurrency
return string