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

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

Private Properties

Свойство Тип Описание
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

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

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

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

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

Приватные методы

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

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

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

protected AddMoney ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

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

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

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

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

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

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

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

public FireObjectPaid ( UUID objectID, UUID agentID, int amount ) : void
objectID UUID
agentID UUID
amount int
Результат 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

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

protected GetMoney ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

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

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

protected HandleShowPurchases ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

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

protected HandleShowTransactions ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

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

public Initialize ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Результат 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

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

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

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

protected SetMoney ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

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

public Start ( IConfigSource config, IRegistryCore registry ) : void
config IConfigSource
registry IRegistryCore
Результат 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