summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-30 12:02:06 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2015-08-30 12:02:06 +0300
commit12eba4d75931c5e48dac70b1a7dbad7861d059df (patch)
treec230a3fa7e9dd22e354a7c86d5aa2f3ba1ebe95c /protocol
parent04cbe5f2816f75c84738c35703df2e3671ab0ee8 (diff)
protocol:
more download related structures (synced with api) server: api: get_download instead of get_download_info core: added settings values to SERVER_CORE_INFO_REPLY curl_module: sync with api changes
Diffstat (limited to 'protocol')
-rw-r--r--protocol/udm.proto49
1 files changed, 46 insertions, 3 deletions
diff --git a/protocol/udm.proto b/protocol/udm.proto
index 0825dc1..d15fdcf 100644
--- a/protocol/udm.proto
+++ b/protocol/udm.proto
@@ -94,11 +94,42 @@ message download_ui_unsubscription_info {
//dowloads proto part begin
-message client_download_request {
+message client_download_add_request {
+ repeated string_pair params = 1;
+}
+
+message client_download_start_request {
+ required int32 download_id = 1;
+}
+
+message client_download_stop_request {
+ required int32 download_id = 1;
+}
+
+message client_download_delete_request {
+ required int32 download_id = 1;
+ optional bool with_data = 2 [default = false];
+}
+
+message client_download_action_request {
+ required int32 download_id = 1;
+ required int32 action_id = 2;
+}
+
+message int_string_pair {
required int32 id = 1;
- optional bool with_content = 2 [default = false];
+ required string value = 2;
+}
+message client_downloads_request {
+ repeated int_string_pair params = 1;
}
+message client_download_request {
+ required int32 download_id = 1;
+ repeated int_string_pair params = 2;
+}
+
+
enum DOWNLOAD_CONTENT_ENTRY_TYPE {
DOWNLOAD_CONTENT_ENTRY_TYPE_FILE = 0;
DOWNLOAD_CONTENT_ENTRY_TYPE_DIRECTORY = 1;
@@ -201,7 +232,7 @@ enum SERVER_MODULE_TYPE {
message string_pair
{
required string name = 1;
- required string description = 2;
+ required string value = 2;
}
@@ -282,6 +313,12 @@ enum CLIENT_MSG_TYPE {
CLIENT_SUBSCRIPTIONS_REQUEST = 5;
CLIENT_UNSUBSCRIPTIONS_REQUEST = 6;
CLIENT_DOWNLOADS_LIST_REQUEST = 7;
+ CLIENT_DOWNLOAD_ADD = 8;
+ CLIENT_DOWNLOAD_START = 9;
+ CLIENT_DOWNLOAD_STOP = 10;
+ CLIENT_DOWNLOAD_DELETE = 11;
+ CLIENT_DOWNLOAD_EXECUTE_ACTION = 12;
+ CLIENT_DOWNLOAD_INFO_REQUEST = 13;
}
message client_msg {
@@ -292,6 +329,12 @@ message client_msg {
repeated client_event_subscription_request subscription_request = 5;
repeated client_event_unsubscription_request unsubscription_request = 6;
repeated client_download_request downloads_request = 7;
+ optional client_download_add_request download_add_request = 8;
+ optional client_download_start_request download_start_request = 9;
+ optional client_download_stop_request download_stop_request = 10;
+ optional client_download_delete_request download_delete_request = 11;
+ optional client_download_action_request download_action_request = 12;
+ optional client_downloads_request download_list_request = 13;
}