tranGetFileInfo = 206
tranSetFileInfo = 207
tranMoveFile = 208
- // tranMakeFileAlias = 209 TODO: implement file alias command
- tranDownloadFldr = 210
+ tranMakeFileAlias = 209 // TODO: implement file alias command
+ tranDownloadFldr = 210
// tranDownloadInfo = 211 TODO: implement file transfer queue
// tranDownloadBanner = 212 TODO: figure out what this is used for
tranUploadFldr = 213
return fields, nil
}
-func (t Transaction) Payload() []byte {
+func (t Transaction) MarshalBinary() (data []byte, err error) {
payloadSize := t.Size()
fieldCount := make([]byte, 2)
payloadSize, // this is the dataSize field, but seeming the same as totalSize
fieldCount,
fieldPayload,
- )
+ ), err
}
// Size returns the total size of the transaction payload