C# Класс Universe.Modules.Currency.CurrencyModule

Наследование: IMoneyModule, INonSharedRegionModule
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

AddRegion() публичный Метод

public AddRegion ( IScene scene ) : void
scene IScene
Результат void

Balance() публичный Метод

public Balance ( UUID agentID ) : int
agentID UUID
Результат int

Charge() публичный Метод

public Charge ( UUID agentID, int amount, string description, TransactionType type ) : bool
agentID UUID
amount int
description string
type TransactionType
Результат bool

Close() публичный Метод

public Close ( ) : void
Результат void

EconomyDataRequestHandler() публичный Метод

Event called Economy Data Request handler.
public EconomyDataRequestHandler ( IClientAPI remoteClient ) : void
remoteClient IClientAPI
Результат void

GetGroupBalance() публичный Метод

public GetGroupBalance ( UUID groupID ) : GroupBalance
groupID UUID
Результат Universe.Framework.Modules.GroupBalance

GetGroupTransactions() публичный Метод

public GetGroupTransactions ( UUID groupID, UUID agentID, int currentInterval, int intervalDays ) : List
groupID UUID
agentID UUID
currentInterval int
intervalDays int
Результат List

GetPurchaseHistory() публичный Метод

public GetPurchaseHistory ( System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
dateStart System.DateTime
dateEnd System.DateTime
start uint
count uint
Результат List

GetPurchaseHistory() публичный Метод

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
Результат List

GetPurchaseHistory() публичный Метод

public GetPurchaseHistory ( UUID toAgentID, int period, string periodType ) : List
toAgentID UUID
period int
periodType string
Результат List

GetPurchaseHistory() публичный Метод

public GetPurchaseHistory ( int period, string periodType, uint start, uint count ) : List
period int
periodType string
start uint
count uint
Результат List

GetTransactionHistory() публичный Метод

public GetTransactionHistory ( System.DateTime dateStart, System.DateTime dateEnd, uint start, uint count ) : List
dateStart System.DateTime
dateEnd System.DateTime
start uint
count uint
Результат List

GetTransactionHistory() публичный Метод

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
Результат List

GetTransactionHistory() публичный Метод

public GetTransactionHistory ( UUID toAgentID, UUID fromAgentID, int period, string periodType ) : List
toAgentID UUID
fromAgentID UUID
period int
periodType string
Результат List

GetTransactionHistory() публичный Метод

public GetTransactionHistory ( UUID toAgentID, int period, string periodType ) : List
toAgentID UUID
period int
periodType string
Результат List

GetTransactionHistory() публичный Метод

public GetTransactionHistory ( int period, string periodType, uint start, uint count ) : List
period int
periodType string
start uint
count uint
Результат List

GroupCurrencyTransfer() публичный Метод

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
Результат bool

Initialize() публичный Метод

Startup
public Initialize ( IConfigSource config ) : void
config IConfigSource
Результат void

NumberOfPurchases() публичный Метод

public NumberOfPurchases ( UUID UserID ) : uint
UserID UUID
Результат uint

NumberOfTransactions() публичный Метод

public NumberOfTransactions ( UUID toAgent, UUID fromAgent ) : uint
toAgent UUID
fromAgent UUID
Результат uint

ObjectGiveMoney() публичный Метод

public ObjectGiveMoney ( UUID objectID, string objectName, UUID fromID, UUID toID, int amount ) : bool
objectID UUID
objectName string
fromID UUID
toID UUID
amount int
Результат bool

OnClosingClient() защищенный Метод

protected OnClosingClient ( IClientAPI client ) : void
client IClientAPI
Результат void

OnNewClient() защищенный Метод

New Client Event Handler
protected OnNewClient ( IClientAPI client ) : void
client IClientAPI
Результат void

ProcessMoneyTransferRequest() публичный Метод

public ProcessMoneyTransferRequest ( UUID source, UUID destination, int amount, int transactiontype, string description ) : void
source UUID
destination UUID
amount int
transactiontype int
description string
Результат void

RegionLoaded() публичный Метод

public RegionLoaded ( IScene scene ) : void
scene IScene
Результат void

RemoveRegion() публичный Метод

public RemoveRegion ( IScene scene ) : void
scene IScene
Результат void

SendMoneyBalance() защищенный Метод

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
Результат void

Transfer() публичный Метод

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
Результат bool

Transfer() публичный Метод

public Transfer ( UUID toID, UUID fromID, int amount, string description, TransactionType type ) : bool
toID UUID
fromID UUID
amount int
description string
type TransactionType
Результат bool

Transfer() публичный Метод

public Transfer ( UUID objectID, UUID agentID, int amount ) : void
objectID UUID
agentID UUID
amount int
Результат void

buy_func() защищенный Метод

protected buy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
ep System.Net.IPEndPoint
Результат Nwc.XmlRpc.XmlRpcResponse

landBuy_func() защищенный Метод

protected landBuy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
ep System.Net.IPEndPoint
Результат Nwc.XmlRpc.XmlRpcResponse

preflightBuyLandPrep_func() защищенный Метод

protected preflightBuyLandPrep_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
ep System.Net.IPEndPoint
Результат Nwc.XmlRpc.XmlRpcResponse

quote_func() защищенный Метод

protected quote_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint ep ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
ep System.Net.IPEndPoint
Результат Nwc.XmlRpc.XmlRpcResponse