C# Class Universe.Modules.Currency.CurrencyModule

Inheritance: IMoneyModule, INonSharedRegionModule
显示文件 Open project: Virtual-Universe/Virtual-Universe

Public Methods

Method 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

Protected Methods

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

public AddRegion ( IScene scene ) : void
scene IScene
return void

Balance() public method

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

Charge() public method

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

Close() public method

public Close ( ) : void
return void

EconomyDataRequestHandler() public method

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

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

Initialize() public method

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

OnNewClient() protected method

New Client Event Handler
protected OnNewClient ( IClientAPI client ) : void
client IClientAPI
return void

ProcessMoneyTransferRequest() public method

public ProcessMoneyTransferRequest ( UUID source, UUID destination, int amount, int transactiontype, string description ) : void
source UUID
destination UUID
amount int
transactiontype int
description string
return void

RegionLoaded() public method

public RegionLoaded ( IScene scene ) : void
scene IScene
return void

RemoveRegion() public method

public RemoveRegion ( IScene scene ) : void
scene IScene
return void

SendMoneyBalance() protected method

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

Transfer() public method

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

buy_func() protected method

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

landBuy_func() protected method

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

preflightBuyLandPrep_func() protected method

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

quote_func() protected method

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