C# Class PayPal.PayPalModule

Inheritance: ISharedRegionModule, IMoneyModule
显示文件 Open project: SnoopyPfeffer/Mod-PayPal

Public Methods

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

Private Methods

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

Method Details

AddRegion() public method

public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

AmountCovered() public method

public AmountCovered ( UUID agentID, int amount ) : bool
agentID UUID
amount int
return bool

ApplyCharge() public method

public ApplyCharge ( UUID agentID, int amount, MoneyTransactionType type ) : void
agentID UUID
amount int
type MoneyTransactionType
return void

ApplyCharge() public method

public ApplyCharge ( UUID agentID, int amount, MoneyTransactionType type, string extraData ) : void
agentID UUID
amount int
type MoneyTransactionType
extraData string
return void

ApplyUploadCharge() public method

public ApplyUploadCharge ( UUID agentID, int amount, string text ) : void
agentID UUID
amount int
text string
return void

Close() public method

public Close ( ) : void
return void

EconomyDataRequestHandler() public method

Event called Economy Data Request handler.
public EconomyDataRequestHandler ( IClientAPI user ) : void
user IClientAPI
return void

FirstRegionLoaded() public method

public FirstRegionLoaded ( ) : void
return void

GetBalance() public method

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

IPN() public method

public IPN ( Hashtable request ) : Hashtable
request System.Collections.Hashtable
return System.Collections.Hashtable

Initialise() public method

public Initialise ( IConfigSource source ) : void
source IConfigSource
return void

MoveMoney() public method

public MoveMoney ( UUID fromAgentID, UUID toAgentID, int amount, string text ) : void
fromAgentID UUID
toAgentID UUID
amount int
text string
return void

ObjectBuy() public method

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

ObjectGiveMoney() public method

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

PostInitialise() public method

public PostInitialise ( ) : void
return void

RegionLoaded() public method

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

RemoveRegion() public method

public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
return void

UploadCovered() public method

public UploadCovered ( UUID agentID, int amount ) : bool
agentID UUID
amount int
return bool

UserPage() public method

public UserPage ( Hashtable request ) : Hashtable
request System.Collections.Hashtable
return System.Collections.Hashtable

buy_func() public method

public buy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

landBuy_func() public method

public landBuy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

preflightBuyLandPrep_func() public method

public preflightBuyLandPrep_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

quote_func() public method

public quote_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
return Nwc.XmlRpc.XmlRpcResponse

requestPayPrice() public method

public requestPayPrice ( IClientAPI client, UUID objectID ) : void
client IClientAPI
objectID UUID
return void