C# Class Universe.Modules.Agent.AssetTransaction.AssetXferUploader

Show file Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Properties

Property Type Description
XferID ulong

Public Methods

Method Description
AssetXferUploader ( AgentAssetTransactions transactions, IScene scene, UUID transactionID, bool dumpAssetToFile ) : System

AssetXferUploader constructor

HandleXferPacket ( ulong xferID, uint packetID, byte data ) : bool

Process transfer data received from the client.

RequestCreateInventoryItem ( IClientAPI remoteClient, UUID folderID, uint callbackID, string description, string name, sbyte invType, sbyte type, byte wearableType, uint nextOwnerMask ) : void
RequestUpdateInventoryItem ( IClientAPI remoteClient, InventoryItemBase item ) : void
RequestUpdateTaskInventoryItem ( IClientAPI remoteClient, TaskInventoryItem taskItem ) : void
StartUpload ( IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, byte data, bool storeLocal, bool tempFile ) : void

Start asset transfer from the client

Protected Methods

Method Description
RequestStartXfer ( ) : void
SendCompleteMessage ( ) : void

Private Methods

Method Description
CompleteCreateItem ( uint callbackID ) : void
CompleteItemUpdate ( InventoryItemBase item ) : void

Store the asset for the given item when it has been uploaded.

CompleteTaskItemUpdate ( TaskInventoryItem taskItem ) : void

Store the asset for the given task item when it has been uploaded.

SaveAssetToFile ( string filename, byte data ) : void

Method Details

AssetXferUploader() public method

AssetXferUploader constructor
public AssetXferUploader ( AgentAssetTransactions transactions, IScene scene, UUID transactionID, bool dumpAssetToFile ) : System
transactions AgentAssetTransactions
scene IScene
transactionID UUID
dumpAssetToFile bool /// If true then when the asset is uploaded it is dumped to a file with the format /// String.Format("{6}_{7}_{0:d2}{1:d2}{2:d2}_{3:d2}{4:d2}{5:d2}.dat", /// now.Year, now.Month, now.Day, now.Hour, now.Minute, /// now.Second, m_asset.Name, m_asset.Type); /// for debugging purposes. ///
return System

HandleXferPacket() public method

Process transfer data received from the client.
public HandleXferPacket ( ulong xferID, uint packetID, byte data ) : bool
xferID ulong
packetID uint
data byte
return bool

RequestCreateInventoryItem() public method

public RequestCreateInventoryItem ( IClientAPI remoteClient, UUID folderID, uint callbackID, string description, string name, sbyte invType, sbyte type, byte wearableType, uint nextOwnerMask ) : void
remoteClient IClientAPI
folderID UUID
callbackID uint
description string
name string
invType sbyte
type sbyte
wearableType byte
nextOwnerMask uint
return void

RequestStartXfer() protected method

protected RequestStartXfer ( ) : void
return void

RequestUpdateInventoryItem() public method

public RequestUpdateInventoryItem ( IClientAPI remoteClient, InventoryItemBase item ) : void
remoteClient IClientAPI
item Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
return void

RequestUpdateTaskInventoryItem() public method

public RequestUpdateTaskInventoryItem ( IClientAPI remoteClient, TaskInventoryItem taskItem ) : void
remoteClient IClientAPI
taskItem Universe.Framework.SceneInfo.TaskInventoryItem
return void

SendCompleteMessage() protected method

protected SendCompleteMessage ( ) : void
return void

StartUpload() public method

Start asset transfer from the client
public StartUpload ( 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 /// Optional data. If present then the asset is created immediately with this data /// rather than requesting an upload from the client. The data must be longer than 2 bytes. ///
storeLocal bool
tempFile bool
return void

Property Details

XferID public property

public ulong XferID
return ulong