From 8318540e162cccbb049bebebc5aca03384a1e4e9 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 29 Dec 2013 21:07:28 +0100 Subject: added progress type enum, new DebugCrypter + Hoster, little improvements for crypter api --- pyload/remote/pyload.thrift | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'pyload/remote/pyload.thrift') diff --git a/pyload/remote/pyload.thrift b/pyload/remote/pyload.thrift index 9b8415d0f..a9431ea7c 100644 --- a/pyload/remote/pyload.thrift +++ b/pyload/remote/pyload.thrift @@ -116,6 +116,16 @@ enum Role { User = 1 } +enum ProgressType { + All = 0, + Other = 1, + Download = 2, + Decrypting = 4, + LinkCheck = 8, + Addon = 16, + FileOperation = 32, +} + struct Input { 1: InputType type, 2: optional JSONString default_value, @@ -135,8 +145,10 @@ struct ProgressInfo { 3: string statusmsg, 4: i32 eta, // in seconds 5: ByteCount done, - 6: ByteCount total, // arbitary number, size in case of files - 7: optional DownloadProgress download + 6: ByteCount total, // arbitary number, size in case of files, + 7: UserID owner, + 8: ProgressType type, + 9: optional DownloadProgress download //only given when progress type download } // download info for specific file -- cgit v1.2.3