C# 클래스 PayPal.PayPalModule

상속: ISharedRegionModule, IMoneyModule
파일 보기 프로젝트 열기: SnoopyPfeffer/Mod-PayPal

공개 메소드들

메소드 설명
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