C# Class Universe.Modules.Currency.BaseCurrencyServiceModule

Inheritance: IMoneyModule, IService
ファイルを表示 Open project: Virtual-Universe/Virtual-Universe

Private Properties

Property Type Description
AddCommands void
EconomyDataRequestHandler void
EventManager_OnValidateBuyLand bool
GetAmount uint
GetSceneFor IScene
GetUserAccount Universe.Framework.Services.UserAccount
OnMakeRootAgent void
OnNewClient void
ProcessMoneyTransferRequest void
SendMoneyBalance void
StrUserBalance string
ValidateLandBuy bool
syncRecievedService_OnMessageReceived OSDMap

Public Methods

Method Description
Balance ( UUID agentID ) : int
Charge ( UUID agentID, int amount, string text, TransactionType type ) : bool
FinishedStartup ( ) : void
FireObjectPaid ( UUID objectID, UUID agentID, int amount ) : void
GetGroupBalance ( UUID groupID ) : GroupBalance
GetGroupTransactions ( UUID groupID, UUID agentID, 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
GroupCurrencyTransfer ( UUID groupID, UUID userID, bool payUser, string toObjectName, UUID fromObjectID, string fromObjectName, int amount, string description, TransactionType type, UUID transactionID ) : bool
Initialize ( IConfigSource config, IRegistryCore registry ) : void
NumberOfPurchases ( UUID UserID ) : uint
NumberOfTransactions ( UUID toAgent, UUID fromAgent ) : uint
ObjectGiveMoney ( UUID objectID, string objectName, UUID fromID, UUID toID, int amount ) : bool
SendGridMessage ( UUID toId, string message, UUID transactionId ) : bool

All message for money actually go through this function. Which also update the balance

Start ( IConfigSource config, IRegistryCore registry ) : void
Transfer ( UUID toID, UUID fromID, UUID toObjectID, string toObjectName, UUID fromObjectID, string fromObjectName, int amount, string description, TransactionType type ) : bool
Transfer ( UUID toID, UUID fromID, int amount, string description, TransactionType type ) : bool

Protected Methods

Method Description
AddMoney ( IScene scene, string cmd ) : void
GetMoney ( IScene scene, string cmd ) : void
HandleShowPurchases ( IScene scene, string cmd ) : void
HandleShowTransactions ( IScene scene, string cmd ) : void
OnClosingClient ( IClientAPI client ) : void
SetMoney ( IScene scene, string cmd ) : void

Private Methods

Method Description
AddCommands ( ) : void
EconomyDataRequestHandler ( IClientAPI remoteClient ) : void
EventManager_OnValidateBuyLand ( EventManager e ) : bool
GetAmount ( string prompt ) : uint
GetSceneFor ( UUID userID ) : IScene
GetUserAccount ( ) : UserAccount
OnMakeRootAgent ( IScenePresence presence ) : void
OnNewClient ( IClientAPI client ) : void
ProcessMoneyTransferRequest ( UUID fromID, UUID toID, int amount, int type, string description ) : void
SendMoneyBalance ( IClientAPI client, UUID agentId, UUID sessionId, UUID transactionId ) : void
StrUserBalance ( int amount ) : string
ValidateLandBuy ( EventManager e ) : bool
syncRecievedService_OnMessageReceived ( OSDMap message ) : OSDMap

Method Details

AddMoney() protected method

protected AddMoney ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

Balance() public method

public Balance ( UUID agentID ) : int
agentID UUID
return int

Charge() public method

public Charge ( UUID agentID, int amount, string text, TransactionType type ) : bool
agentID UUID
amount int
text string
type TransactionType
return bool

FinishedStartup() public method

public FinishedStartup ( ) : void
return void

FireObjectPaid() public method

public FireObjectPaid ( UUID objectID, UUID agentID, int amount ) : void
objectID UUID
agentID UUID
amount int
return void

GetGroupBalance() public method

public GetGroupBalance ( UUID groupID ) : GroupBalance
groupID UUID
return Universe.Framework.Modules.GroupBalance

GetGroupTransactions() public method

public GetGroupTransactions ( UUID groupID, UUID agentID, int currentInterval, int intervalDays ) : List
groupID UUID
agentID UUID
currentInterval int
intervalDays int
return List

GetMoney() protected method

protected GetMoney ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

GetPurchaseHistory() public method

public GetPurchaseHistory ( System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
dateStart System.DateTime
dateEnd System.DateTime
start uint
count uint
return List

GetPurchaseHistory() public method

public GetPurchaseHistory ( UUID userID, System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
userID UUID
dateStart System.DateTime
dateEnd System.DateTime
start uint
count uint
return List

GetPurchaseHistory() public method

public GetPurchaseHistory ( UUID toAgentID, int period, string periodType ) : List
toAgentID UUID
period int
periodType string
return List

GetPurchaseHistory() public method

public GetPurchaseHistory ( int period, string periodType, uint start, uint count ) : List
period int
periodType string
start uint
count uint
return List

GetTransactionHistory() public method

public GetTransactionHistory ( System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
dateStart System.DateTime
dateEnd System.DateTime
start uint
count uint
return List

GetTransactionHistory() public method

public GetTransactionHistory ( UUID toAgentID, UUID fromAgentID, System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
toAgentID UUID
fromAgentID UUID
dateStart System.DateTime
dateEnd System.DateTime
start uint
count uint
return List

GetTransactionHistory() public method

public GetTransactionHistory ( UUID toAgentID, UUID fromAgentID, int period, string periodType ) : List
toAgentID UUID
fromAgentID UUID
period int
periodType string
return List

GetTransactionHistory() public method

public GetTransactionHistory ( UUID toAgentID, int period, string periodType ) : List
toAgentID UUID
period int
periodType string
return List

GetTransactionHistory() public method

public GetTransactionHistory ( int period, string periodType, uint start, uint count ) : List
period int
periodType string
start uint
count uint
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

HandleShowPurchases() protected method

protected HandleShowPurchases ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

HandleShowTransactions() protected method

protected HandleShowTransactions ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

Initialize() public method

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

NumberOfPurchases() public method

public NumberOfPurchases ( UUID UserID ) : uint
UserID UUID
return uint

NumberOfTransactions() public method

public NumberOfTransactions ( UUID toAgent, UUID fromAgent ) : uint
toAgent UUID
fromAgent UUID
return uint

ObjectGiveMoney() public method

public ObjectGiveMoney ( UUID objectID, string objectName, UUID fromID, UUID toID, int amount ) : bool
objectID UUID
objectName string
fromID UUID
toID UUID
amount int
return bool

OnClosingClient() protected method

protected OnClosingClient ( IClientAPI client ) : void
client IClientAPI
return void

SendGridMessage() public method

All message for money actually go through this function. Which also update the balance
public SendGridMessage ( UUID toId, string message, UUID transactionId ) : bool
toId UUID
message string
transactionId UUID
return bool

SetMoney() protected method

protected SetMoney ( IScene scene, string cmd ) : void
scene IScene
cmd string
return void

Start() public method

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
return void

Transfer() public method

public Transfer ( UUID toID, UUID fromID, UUID toObjectID, string toObjectName, UUID fromObjectID, string fromObjectName, int amount, string description, TransactionType type ) : bool
toID UUID
fromID UUID
toObjectID UUID
toObjectName string
fromObjectID UUID
fromObjectName string
amount int
description string
type TransactionType
return bool

Transfer() public method

public Transfer ( UUID toID, UUID fromID, int amount, string description, TransactionType type ) : bool
toID UUID
fromID UUID
amount int
description string
type TransactionType
return bool