C# 클래스 Universe.Modules.Currency.BaseCurrencyServiceModule

상속: IMoneyModule, IService
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe

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