# TransferItem

TransferItem Class

Represents a transfer item in the queue view

Fields

TransferType | TransferType | Transfer type, default is TransferType.TransferFile
TransferState | TransferState | Transfer status, default is TransferState.Waiting
SourceServer | Server | Source server, use Server.Local for local file system
TargetServer | Server | Target server, use Server.Local for target file system
SourceName | string | Source file/directory name
TargetName | string | Target file/directory name
Size | long | Readonly, total size need to be transferred
Transfered | long | Readonly, size already be transferred
Speed | double | Readonly, you can use it to query the transfer speed

Examples

// Create a demo server Server demo_server = new Server { Host = "demo.wftpserver.com", Username = "demo", Password = "demo" }; TransferItem transferItem = new TransferItem { SourceServer = demo_server, TargetServer = Server.Local, SourceName = "/download/Autumn.jpg", TargetName = "~Documents/Autumn.jpg", }; Transfer.Add(transferItem);

See Also

- TransferType
- TransferState
- Server
- Transfer