C# Class Universe.Modules.Currency.CurrencyModule

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

Méthodes publiques

Méthode Description
AddRegion ( IScene scene ) : void
Balance ( UUID agentID ) : int
Charge ( UUID agentID, int amount, string description, TransactionType type ) : bool
Close ( ) : void
EconomyDataRequestHandler ( IClientAPI remoteClient ) : void

Event called Economy Data Request handler.

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 UserID, 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 fromID, bool payUser, string toObjectName, UUID fromObjectID, string fromObjectName, int amount, string description, TransactionType type, UUID transactionID ) : bool
Initialize ( IConfigSource config ) : void

Startup

NumberOfPurchases ( UUID UserID ) : uint
NumberOfTransactions ( UUID toAgent, UUID fromAgent ) : uint
ObjectGiveMoney ( UUID objectID, string objectName, UUID fromID, UUID toID, int amount ) : bool
ProcessMoneyTransferRequest ( UUID source, UUID destination, int amount, int transactiontype, string description ) : void
RegionLoaded ( IScene scene ) : void
RemoveRegion ( IScene scene ) : 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
Transfer ( UUID objectID, UUID agentID, int amount ) : void

Méthodes protégées

Méthode Description
OnClosingClient ( IClientAPI client ) : void
OnNewClient ( IClientAPI client ) : void

New Client Event Handler

SendMoneyBalance ( IClientAPI client, UUID agentID, UUID SessionID, UUID transactionID ) : void

Sends the stored money balance to the client

buy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
landBuy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
preflightBuyLandPrep_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
quote_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse

Method Details

AddRegion() public méthode

public AddRegion ( IScene scene ) : void
scene IScene
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 description, TransactionType type ) : bool
agentID UUID
amount int
description string
type TransactionType
Résultat bool

Close() public méthode

public Close ( ) : void
Résultat void

EconomyDataRequestHandler() public méthode

Event called Economy Data Request handler.
public EconomyDataRequestHandler ( IClientAPI remoteClient ) : void
remoteClient IClientAPI
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

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 UserID, UUID fromAgentID, System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
UserID 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 fromID, bool payUser, string toObjectName, UUID fromObjectID, string fromObjectName, int amount, string description, TransactionType type, UUID transactionID ) : bool
groupID UUID
fromID UUID
payUser bool
toObjectName string
fromObjectID UUID
fromObjectName string
amount int
description string
type TransactionType
transactionID UUID
Résultat bool

Initialize() public méthode

Startup
public Initialize ( IConfigSource config ) : void
config IConfigSource
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

OnNewClient() protected méthode

New Client Event Handler
protected OnNewClient ( IClientAPI client ) : void
client IClientAPI
Résultat void

ProcessMoneyTransferRequest() public méthode

public ProcessMoneyTransferRequest ( UUID source, UUID destination, int amount, int transactiontype, string description ) : void
source UUID
destination UUID
amount int
transactiontype int
description string
Résultat void

RegionLoaded() public méthode

public RegionLoaded ( IScene scene ) : void
scene IScene
Résultat void

RemoveRegion() public méthode

public RemoveRegion ( IScene scene ) : void
scene IScene
Résultat void

SendMoneyBalance() protected méthode

Sends the stored money balance to the client
protected SendMoneyBalance ( IClientAPI client, UUID agentID, UUID SessionID, UUID transactionID ) : void
client IClientAPI
agentID UUID
SessionID UUID
transactionID UUID
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

Transfer() public méthode

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

buy_func() protected méthode

protected buy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
ep System.Net.IPEndPoint
Résultat Nwc.XmlRpc.XmlRpcResponse

landBuy_func() protected méthode

protected landBuy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
ep System.Net.IPEndPoint
Résultat Nwc.XmlRpc.XmlRpcResponse

preflightBuyLandPrep_func() protected méthode

protected preflightBuyLandPrep_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
ep System.Net.IPEndPoint
Résultat Nwc.XmlRpc.XmlRpcResponse

quote_func() protected méthode

protected quote_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
ep System.Net.IPEndPoint
Résultat Nwc.XmlRpc.XmlRpcResponse