C# Class FreeMoney.FreeMoneyModule

Inheritance: ISharedRegionModule, IMoneyModule
Show file Open project: edmundedgar/Mod-FreeMoney

Public Methods

Method Description
AddRegion ( Scene scene ) : void
AmountCovered ( UUID agentID, int amount ) : bool
ApplyCharge ( UUID agentID, int amount, string text ) : void
ApplyUploadCharge ( UUID agentID, int amount, string text ) : void
BitcoinInitializePaymentPage ( Hashtable request ) : Hashtable
BuyerInfo ( Hashtable request ) : Hashtable
Close ( ) : void
EconomyDataRequestHandler ( UUID agentId ) : void

Event called Economy Data Request handler.

FirstRegionLoaded ( ) : void
GetBalance ( UUID agentID ) : int
HandleBitcoinConfirmationPing ( Hashtable request_hash ) : Hashtable
HandleBitcoinRegistrationRequest ( Hashtable request_hash ) : Hashtable
IPN ( Hashtable request ) : Hashtable
Initialise ( IConfigSource source ) : 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 ) : 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
GetSessionKey ( UUID userkey ) : UUID
InitializeBitcoinTransaction ( FreeMoneyTransaction txn, string base_url ) : BitcoinTransaction
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
SendEntryMessage ( IClientAPI client ) : void
SendInstantMessage ( UUID dest, string message ) : void
ShowUserPage ( Hashtable request, string baseUrl, FreeMoneyTransaction txn, string error_message ) : Hashtable
TransferSuccess ( FreeMoneyTransaction 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, string text ) : void
agentID UUID
amount int
text string
return void

ApplyUploadCharge() public method

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

BitcoinInitializePaymentPage() public method

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

BuyerInfo() public method

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

Close() public method

public Close ( ) : void
return void

EconomyDataRequestHandler() public method

Event called Economy Data Request handler.
public EconomyDataRequestHandler ( UUID agentId ) : void
agentId UUID
return void

FirstRegionLoaded() public method

public FirstRegionLoaded ( ) : void
return void

GetBalance() public method

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

HandleBitcoinConfirmationPing() public method

public HandleBitcoinConfirmationPing ( Hashtable request_hash ) : Hashtable
request_hash System.Collections.Hashtable
return System.Collections.Hashtable

HandleBitcoinRegistrationRequest() public method

public HandleBitcoinRegistrationRequest ( Hashtable request_hash ) : Hashtable
request_hash System.Collections.Hashtable
return System.Collections.Hashtable

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

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 ) : bool
objectID UUID
fromID UUID
toID UUID
amount int
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