C# Class Universe.Modules.Currency.BaseCurrencyServiceModule

Inheritance: IMoneyModule, IService
Afficher le fichier Open project: Virtual-Universe/Virtual-Universe

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

protected AddMoney ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

Balance() public méthode

public Balance ( UUID agentID ) : int
agentID UUID
Résultat int

Charge() public méthode

public Charge ( UUID agentID, int amount, string text, TransactionType type ) : bool
agentID UUID
amount int
text string
type TransactionType
Résultat bool

FinishedStartup() public méthode

public FinishedStartup ( ) : void
Résultat void

FireObjectPaid() public méthode

public FireObjectPaid ( UUID objectID, UUID agentID, int amount ) : void
objectID UUID
agentID UUID
amount int
Résultat void

GetGroupBalance() public méthode

public GetGroupBalance ( UUID groupID ) : GroupBalance
groupID UUID
Résultat Universe.Framework.Modules.GroupBalance

GetGroupTransactions() public méthode

public GetGroupTransactions ( UUID groupID, UUID agentID, int currentInterval, int intervalDays ) : List
groupID UUID
agentID UUID
currentInterval int
intervalDays int
Résultat List

GetMoney() protected méthode

protected GetMoney ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

GetPurchaseHistory() public méthode

public GetPurchaseHistory ( System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
dateStart System.DateTime
dateEnd System.DateTime
start uint
count uint
Résultat List

GetPurchaseHistory() public méthode

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
Résultat List

GetPurchaseHistory() public méthode

public GetPurchaseHistory ( UUID toAgentID, int period, string periodType ) : List
toAgentID UUID
period int
periodType string
Résultat List

GetPurchaseHistory() public méthode

public GetPurchaseHistory ( int period, string periodType, uint start, uint count ) : List
period int
periodType string
start uint
count uint
Résultat List

GetTransactionHistory() public méthode

public GetTransactionHistory ( System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
dateStart System.DateTime
dateEnd System.DateTime
start uint
count uint
Résultat List

GetTransactionHistory() public méthode

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
Résultat List

GetTransactionHistory() public méthode

public GetTransactionHistory ( UUID toAgentID, UUID fromAgentID, int period, string periodType ) : List
toAgentID UUID
fromAgentID UUID
period int
periodType string
Résultat List

GetTransactionHistory() public méthode

public GetTransactionHistory ( UUID toAgentID, int period, string periodType ) : List
toAgentID UUID
period int
periodType string
Résultat List

GetTransactionHistory() public méthode

public GetTransactionHistory ( int period, string periodType, uint start, uint count ) : List
period int
periodType string
start uint
count uint
Résultat List

GroupCurrencyTransfer() public méthode

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
Résultat bool

HandleShowPurchases() protected méthode

protected HandleShowPurchases ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

HandleShowTransactions() protected méthode

protected HandleShowTransactions ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

Initialize() public méthode

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Résultat void

NumberOfPurchases() public méthode

public NumberOfPurchases ( UUID UserID ) : uint
UserID UUID
Résultat uint

NumberOfTransactions() public méthode

public NumberOfTransactions ( UUID toAgent, UUID fromAgent ) : uint
toAgent UUID
fromAgent UUID
Résultat uint

ObjectGiveMoney() public méthode

public ObjectGiveMoney ( UUID objectID, string objectName, UUID fromID, UUID toID, int amount ) : bool
objectID UUID
objectName string
fromID UUID
toID UUID
amount int
Résultat bool

OnClosingClient() protected méthode

protected OnClosingClient ( IClientAPI client ) : void
client IClientAPI
Résultat void

SendGridMessage() public méthode

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
Résultat bool

SetMoney() protected méthode

protected SetMoney ( IScene scene, string cmd ) : void
scene IScene
cmd string
Résultat void

Start() public méthode

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Résultat void

Transfer() public méthode

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
Résultat bool

Transfer() public méthode

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