C# Класс PayPal.PayPalModule

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

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

Метод Описание
AddRegion ( Scene scene ) : void
AmountCovered ( UUID agentID, int amount ) : bool
ApplyCharge ( UUID agentID, int amount, MoneyTransactionType type ) : void
ApplyCharge ( UUID agentID, int amount, MoneyTransactionType type, string extraData ) : void
ApplyUploadCharge ( UUID agentID, int amount, string text ) : void
Close ( ) : void
EconomyDataRequestHandler ( IClientAPI user ) : void

Event called Economy Data Request handler.

FirstRegionLoaded ( ) : void
GetBalance ( UUID agentID ) : int
IPN ( Hashtable request ) : Hashtable
Initialise ( IConfigSource source ) : void
MoveMoney ( UUID fromAgentID, UUID toAgentID, int amount, string text ) : void
ObjectBuy ( IClientAPI remoteClient, UUID agentID, UUID sessionID, UUID groupID, UUID categoryID, uint localID, byte saleType, int salePrice ) : void
ObjectGiveMoney ( UUID objectID, UUID fromID, UUID toID, int amount, UUID txn, string &result ) : bool
PostInitialise ( ) : void
RegionLoaded ( Scene scene ) : void
RemoveRegion ( Scene scene ) : void
UploadCovered ( UUID agentID, int amount ) : bool
UserPage ( Hashtable request ) : Hashtable
buy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
landBuy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
preflightBuyLandPrep_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
quote_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
requestPayPrice ( IClientAPI client, UUID objectID ) : void

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

Метод Описание
ConvertAmountToCurrency ( int amount ) : decimal
GetEmail ( UUID scope, UUID key, string &email ) : bool
LocateClientObject ( UUID AgentID ) : IClientAPI

Locates a IClientAPI for the client specified

LocateSceneClientIn ( UUID agentID ) : Scene
MakeRootAgent ( ScenePresence avatar ) : void

Event Handler for when a root agent becomes a root agent

OnMoneyBalanceRequest ( IClientAPI client, UUID agentID, UUID SessionID, UUID TransactionID ) : void
OnMoneyTransfer ( object sender, EventManager e ) : void

Thanks to Melanie for reminding me about EventManager.OnMoneyTransfer being the critical function, and not ApplyCharge.

OnNewClient ( IClientAPI client ) : void
RetrieveInstantMessages ( IClientAPI client ) : void
SendEntryMessage ( IClientAPI client ) : void
SendInstantMessage ( UUID dest, string message ) : void
TransferSuccess ( PayPalTransaction transaction ) : void
ValidateLandBuy ( Object osender, EventManager e ) : void
debugStringDict ( object>.Dictionary strs ) : void
processLandBuy ( Object osender, EventManager e ) : void

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

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

public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
Результат void

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

public AmountCovered ( UUID agentID, int amount ) : bool
agentID UUID
amount int
Результат bool

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

public ApplyCharge ( UUID agentID, int amount, MoneyTransactionType type ) : void
agentID UUID
amount int
type MoneyTransactionType
Результат void

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

public ApplyCharge ( UUID agentID, int amount, MoneyTransactionType type, string extraData ) : void
agentID UUID
amount int
type MoneyTransactionType
extraData string
Результат void

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

public ApplyUploadCharge ( UUID agentID, int amount, string text ) : void
agentID UUID
amount int
text string
Результат void

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

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

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

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

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

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

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

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

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

public IPN ( Hashtable request ) : Hashtable
request System.Collections.Hashtable
Результат System.Collections.Hashtable

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

public Initialise ( IConfigSource source ) : void
source IConfigSource
Результат void

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

public MoveMoney ( UUID fromAgentID, UUID toAgentID, int amount, string text ) : void
fromAgentID UUID
toAgentID UUID
amount int
text string
Результат void

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

public ObjectBuy ( IClientAPI remoteClient, UUID agentID, UUID sessionID, UUID groupID, UUID categoryID, uint localID, byte saleType, int salePrice ) : void
remoteClient IClientAPI
agentID UUID
sessionID UUID
groupID UUID
categoryID UUID
localID uint
saleType byte
salePrice int
Результат void

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

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

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

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

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

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
Результат void

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

public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
Результат void

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

public UploadCovered ( UUID agentID, int amount ) : bool
agentID UUID
amount int
Результат bool

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

public UserPage ( Hashtable request ) : Hashtable
request System.Collections.Hashtable
Результат System.Collections.Hashtable

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

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

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

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

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

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

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

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

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

public requestPayPrice ( IClientAPI client, UUID objectID ) : void
client IClientAPI
objectID UUID
Результат void