From 33bef25840aef5fd7a1f5188b206e55ced2b6416 Mon Sep 17 00:00:00 2001 From: t3ran13 Date: Tue, 15 May 2018 10:33:23 +0300 Subject: [PATCH] added GetConfigCommand --- Commands/Commands.php | 22 ++++++++++++++++------ Commands/Single/GetConfigCommand.php | 11 +++++++++++ 2 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 Commands/Single/GetConfigCommand.php diff --git a/Commands/Commands.php b/Commands/Commands.php index 33b6040..58841e6 100644 --- a/Commands/Commands.php +++ b/Commands/Commands.php @@ -102,6 +102,11 @@ class Commands implements CommandInterface '0' => ['integer'], //block_id ] ], + 'get_config' => [ + 'apiName' => 'database_api', + 'fields' => [ + ] + ], 'get_content_replies' => [ 'apiName' => 'database_api', 'fields' => [ @@ -280,17 +285,22 @@ class Commands implements CommandInterface 'fields' => [ ] ], - 'get_content' => [ - 'apiName' => 'social_network', + 'get_block_header' => [ + 'apiName' => 'database_api', 'fields' => [ - '0' => ['string'], //author - '1' => ['string'], //permlink + '0' => ['integer'], //block_id ] ], - 'get_block_header' => [ + 'get_config' => [ 'apiName' => 'database_api', 'fields' => [ - '0' => ['integer'], //block_id + ] + ], + 'get_content' => [ + 'apiName' => 'social_network', + 'fields' => [ + '0' => ['string'], //author + '1' => ['string'], //permlink ] ], 'get_content_replies' => [ diff --git a/Commands/Single/GetConfigCommand.php b/Commands/Single/GetConfigCommand.php new file mode 100644 index 0000000..1094d0a --- /dev/null +++ b/Commands/Single/GetConfigCommand.php @@ -0,0 +1,11 @@ +