diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-08-31 23:25:26 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-08-31 23:25:26 +0200 |
commit | cbd4f4b5375f89362733e10a9b98e5a74c2a5734 (patch) | |
tree | 056bb5af9aec5dee164d7f3055819ceb40e92a87 /module/remote/thriftbackend/pyload.thrift | |
parent | Fixed free space issue closed #676 (diff) | |
download | pyload-cbd4f4b5375f89362733e10a9b98e5a74c2a5734.tar.xz |
first js models/views
Diffstat (limited to 'module/remote/thriftbackend/pyload.thrift')
-rw-r--r-- | module/remote/thriftbackend/pyload.thrift | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/module/remote/thriftbackend/pyload.thrift b/module/remote/thriftbackend/pyload.thrift index c628dff78..23b39fada 100644 --- a/module/remote/thriftbackend/pyload.thrift +++ b/module/remote/thriftbackend/pyload.thrift @@ -175,7 +175,7 @@ struct PackageInfo { } // thrift does not allow recursive datatypes, so all data is accumulated and mapped with id -struct PackageView { +struct TreeCollection { 1: PackageInfo root, 2: map<FileID, FileInfo> files, 3: map<PackageID, PackageInfo> packages @@ -385,19 +385,19 @@ service Pyload { // File Information retrival //////////////////////////// - PackageView getAllFiles(), - PackageView getAllUnfinishedFiles(), + TreeCollection getAllFiles(), + TreeCollection getAllUnfinishedFiles(), // pid -1 for root, full=False only delivers first level in tree - PackageView getFileTree(1: PackageID pid, 2: bool full), - PackageView getUnfinishedFileTree(1: PackageID pid, 2: bool full), + TreeCollection getFileTree(1: PackageID pid, 2: bool full), + TreeCollection getUnfinishedFileTree(1: PackageID pid, 2: bool full), // same as above with full=False - PackageView getPackageContent(1: PackageID pid), + TreeCollection getPackageContent(1: PackageID pid), PackageInfo getPackageInfo(1: PackageID pid) throws (1: PackageDoesNotExists e), FileInfo getFileInfo(1: FileID fid) throws (1: FileDoesNotExists e), - map<FileID, FileInfo> findFiles(1: string pattern), + TreeCollection findFiles(1: string pattern), /////////////////////// // Modify Downloads |