C# Class OpenSim.Region.CoreModules.Agent.AssetTransaction.AssetTransactionModule

Inheritance: ISharedRegionModule, IAgentAssetTransactions
Show file Open project: N3X15/VoxelSim Class Usage Examples

Private Properties

Property Type Description
GetUserTransactions OpenSim.Region.CoreModules.Agent.AssetTransaction.AgentAssetTransactions

Public Methods

Method Description
AssetTransactionModule ( ) : System
Close ( ) : void
HandleItemCreationFromTransaction ( IClientAPI remoteClient, UUID transactionID, UUID folderID, uint callbackID, string description, string name, sbyte invType, sbyte type, byte wearableType, uint nextOwnerMask ) : void

Create an inventory item from data that has been received through a transaction. This is called when new clothing or body parts are created. It may also be called in other situations.

HandleItemUpdateFromTransaction ( IClientAPI remoteClient, UUID transactionID, OpenSim.Framework.InventoryItemBase item ) : void

Update an inventory item with data that has been received through a transaction. This is called when clothing or body parts are updated (for instance, with new textures or colours). It may also be called in other situations.

HandleTaskItemUpdateFromTransaction ( IClientAPI remoteClient, SceneObjectPart part, UUID transactionID, TaskInventoryItem item ) : void

Update a task inventory item with data that has been received through a transaction. This is currently called when, for instance, a notecard in a prim is saved. The data is sent up through a single AssetUploadRequest. A subsequent UpdateTaskInventory then references the transaction and comes through this method.

HandleUDPUploadRequest ( IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, byte data, bool storeLocal, bool tempFile ) : void

Request that a client (agent) begin an asset transfer.

HandleXfer ( IClientAPI remoteClient, ulong xferID, uint packetID, byte data ) : void

Handle asset transfer data packets received in response to the asset upload request in HandleUDPUploadRequest()

Initialise ( Scene scene, IConfigSource config ) : void
NewClient ( IClientAPI client ) : void
PostInitialise ( ) : void
RemoveAgentAssetTransactions ( UUID userID ) : void

Remove the given agent asset transactions. This should be called when a client is departing from a scene (and hence won't be making any more transactions here).

Private Methods

Method Description
GetUserTransactions ( UUID userID ) : OpenSim.Region.CoreModules.Agent.AssetTransaction.AgentAssetTransactions

Get the collection of asset transactions for the given user. If one does not already exist, it is created.

Method Details

AssetTransactionModule() public method

public AssetTransactionModule ( ) : System
return System

Close() public method

public Close ( ) : void
return void

HandleItemCreationFromTransaction() public method

Create an inventory item from data that has been received through a transaction. This is called when new clothing or body parts are created. It may also be called in other situations.
public HandleItemCreationFromTransaction ( IClientAPI remoteClient, UUID transactionID, UUID folderID, uint callbackID, string description, string name, sbyte invType, sbyte type, byte wearableType, uint nextOwnerMask ) : void
remoteClient IClientAPI
transactionID UUID
folderID UUID
callbackID uint
description string
name string
invType sbyte
type sbyte
wearableType byte
nextOwnerMask uint
return void

HandleItemUpdateFromTransaction() public method

Update an inventory item with data that has been received through a transaction. This is called when clothing or body parts are updated (for instance, with new textures or colours). It may also be called in other situations.
public HandleItemUpdateFromTransaction ( IClientAPI remoteClient, UUID transactionID, OpenSim.Framework.InventoryItemBase item ) : void
remoteClient IClientAPI
transactionID UUID
item OpenSim.Framework.InventoryItemBase
return void

HandleTaskItemUpdateFromTransaction() public method

Update a task inventory item with data that has been received through a transaction. This is currently called when, for instance, a notecard in a prim is saved. The data is sent up through a single AssetUploadRequest. A subsequent UpdateTaskInventory then references the transaction and comes through this method.
public HandleTaskItemUpdateFromTransaction ( IClientAPI remoteClient, SceneObjectPart part, UUID transactionID, TaskInventoryItem item ) : void
remoteClient IClientAPI
part OpenSim.Region.Framework.Scenes.SceneObjectPart
transactionID UUID
item OpenSim.Framework.TaskInventoryItem
return void

HandleUDPUploadRequest() public method

Request that a client (agent) begin an asset transfer.
public HandleUDPUploadRequest ( IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, byte data, bool storeLocal, bool tempFile ) : void
remoteClient IClientAPI
assetID UUID
transaction UUID
type sbyte
data byte
storeLocal bool
tempFile bool
return void

HandleXfer() public method

Handle asset transfer data packets received in response to the asset upload request in HandleUDPUploadRequest()
public HandleXfer ( IClientAPI remoteClient, ulong xferID, uint packetID, byte data ) : void
remoteClient IClientAPI
xferID ulong
packetID uint
data byte
return void

Initialise() public method

public Initialise ( Scene scene, IConfigSource config ) : void
scene OpenSim.Region.Framework.Scenes.Scene
config IConfigSource
return void

NewClient() public method

public NewClient ( IClientAPI client ) : void
client IClientAPI
return void

PostInitialise() public method

public PostInitialise ( ) : void
return void

RemoveAgentAssetTransactions() public method

Remove the given agent asset transactions. This should be called when a client is departing from a scene (and hence won't be making any more transactions here).
public RemoveAgentAssetTransactions ( UUID userID ) : void
userID UUID
return void