Examples of using product through code
Object Structure
All commands will return a Response object except for the GET operation.
class Response{
boolean success {get; private set;}
double cost {get; private set;}
double dataSize {get; private set;}
string error {get; private set;}
}
Find returns a collection of File elements within the item property
class Find extends Response{
list items {get; private set;}
}
The File object contains detail of the underlying file on the service.
class File{
string filename;
string longname;
string uri;
fileAttributes attrs;
}
The File Attributes object includes service specific data
class FileAttributes{
integer flags;
integer size;
integer uid;
integer gid;
integer permissions;
integer atime;
interger mtime;
object extended;
string permissionString;
string atimeString;
string mtimeString;
boolean reg;
boolean chr;
boolean blk;
boolean fifo;
boolean link;
boolean sock;
boolean dir;
}