From 12eba4d75931c5e48dac70b1a7dbad7861d059df Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 30 Aug 2015 12:02:06 +0300 Subject: 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 --- protocol/udm.proto | 49 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) (limited to 'protocol') 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; } -- cgit v1.2.3