From 6c313208127c27d9b90a5fcd6afe67cbc064d1d0 Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 24 Nov 2017 00:55:47 +0100 Subject: [PATCH] Web API: change all boolean parameters to integer --- sdrbase/resources/index.html | 82 +++++++++---------- sdrbase/webapi/webapirequestmapper.cpp | 4 +- swagger/sdrangel/api/swagger/swagger.yaml | 16 ++-- swagger/sdrangel/code/html2/index.html | 82 +++++++++---------- .../code/qt5/client/SWGDefaultApi.cpp | 8 +- .../sdrangel/code/qt5/client/SWGDefaultApi.h | 8 +- 6 files changed, 100 insertions(+), 100 deletions(-) diff --git a/sdrbase/resources/index.html b/sdrbase/resources/index.html index 798f8d825..5efb84fe0 100644 --- a/sdrbase/resources/index.html +++ b/sdrbase/resources/index.html @@ -1925,7 +1925,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for Tx channels + Integer tx = 56; // Integer | Set to non zero (true) for Tx channels (default Rx) try { InstanceChannelsResponse result = apiInstance.instanceChannels(tx); System.out.println(result); @@ -1944,7 +1944,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for Tx channels + Integer tx = 56; // Integer | Set to non zero (true) for Tx channels (default Rx) try { InstanceChannelsResponse result = apiInstance.instanceChannels(tx); System.out.println(result); @@ -1960,7 +1960,7 @@ public class DefaultApiExample {
Coming Soon!
-->
-
Boolean *tx = true; // Set to true for Tx channels (optional)
+                              
Integer *tx = 56; // Set to non zero (true) for Tx channels (default Rx) (optional)
 
 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
@@ -1982,7 +1982,7 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
 var api = new SdRangel.DefaultApi()
 
 var opts = { 
-  'tx': true // {Boolean} Set to true for Tx channels
+  'tx': 56 // {Integer} Set to non zero (true) for Tx channels (default Rx)
 };
 
 var callback = function(error, data, response) {
@@ -2014,7 +2014,7 @@ namespace Example
         {
             
             var apiInstance = new DefaultApi();
-            var tx = true;  // Boolean | Set to true for Tx channels (optional) 
+            var tx = 56;  // Integer | Set to non zero (true) for Tx channels (default Rx) (optional) 
 
             try
             {
@@ -2036,7 +2036,7 @@ namespace Example
 require_once(__DIR__ . '/vendor/autoload.php');
 
 $api_instance = new Swagger\Client\Api\DefaultApi();
-$tx = true; // Boolean | Set to true for Tx channels
+$tx = 56; // Integer | Set to non zero (true) for Tx channels (default Rx)
 
 try {
     $result = $api_instance->instanceChannels($tx);
@@ -2053,7 +2053,7 @@ use WWW::SwaggerClient::Configuration;
 use WWW::SwaggerClient::DefaultApi;
 
 my $api_instance = WWW::SwaggerClient::DefaultApi->new();
-my $tx = true; # Boolean | Set to true for Tx channels
+my $tx = 56; # Integer | Set to non zero (true) for Tx channels (default Rx)
 
 eval { 
     my $result = $api_instance->instanceChannels(tx => $tx);
@@ -2073,7 +2073,7 @@ from pprint import pprint
 
 # create an instance of the API class
 api_instance = swagger_client.DefaultApi()
-tx = true # Boolean | Set to true for Tx channels (optional)
+tx = 56 # Integer | Set to non zero (true) for Tx channels (default Rx) (optional)
 
 try: 
     api_response = api_instance.instance_channels(tx=tx)
@@ -2103,11 +2103,11 @@ except ApiException as e:
         
- Boolean + Integer
- Set to true for Tx channels + Set to non zero (true) for Tx channels (default Rx)
@@ -2263,7 +2263,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean dvserial = true; // Boolean | Set to true to set DV serial processing + Integer dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing try { DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial); System.out.println(result); @@ -2282,7 +2282,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean dvserial = true; // Boolean | Set to true to set DV serial processing + Integer dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing try { DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial); System.out.println(result); @@ -2298,7 +2298,7 @@ public class DefaultApiExample {
Coming Soon!
-->
-
Boolean *dvserial = true; // Set to true to set DV serial processing (optional)
+                              
Integer *dvserial = 56; // Set to non zero (true) to set DV serial processing (optional)
 
 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
@@ -2320,7 +2320,7 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
 var api = new SdRangel.DefaultApi()
 
 var opts = { 
-  'dvserial': true // {Boolean} Set to true to set DV serial processing
+  'dvserial': 56 // {Integer} Set to non zero (true) to set DV serial processing
 };
 
 var callback = function(error, data, response) {
@@ -2352,7 +2352,7 @@ namespace Example
         {
             
             var apiInstance = new DefaultApi();
-            var dvserial = true;  // Boolean | Set to true to set DV serial processing (optional) 
+            var dvserial = 56;  // Integer | Set to non zero (true) to set DV serial processing (optional) 
 
             try
             {
@@ -2374,7 +2374,7 @@ namespace Example
 require_once(__DIR__ . '/vendor/autoload.php');
 
 $api_instance = new Swagger\Client\Api\DefaultApi();
-$dvserial = true; // Boolean | Set to true to set DV serial processing
+$dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing
 
 try {
     $result = $api_instance->instanceDVSerialPatch($dvserial);
@@ -2391,7 +2391,7 @@ use WWW::SwaggerClient::Configuration;
 use WWW::SwaggerClient::DefaultApi;
 
 my $api_instance = WWW::SwaggerClient::DefaultApi->new();
-my $dvserial = true; # Boolean | Set to true to set DV serial processing
+my $dvserial = 56; # Integer | Set to non zero (true) to set DV serial processing
 
 eval { 
     my $result = $api_instance->instanceDVSerialPatch(dvserial => $dvserial);
@@ -2411,7 +2411,7 @@ from pprint import pprint
 
 # create an instance of the API class
 api_instance = swagger_client.DefaultApi()
-dvserial = true # Boolean | Set to true to set DV serial processing (optional)
+dvserial = 56 # Integer | Set to non zero (true) to set DV serial processing (optional)
 
 try: 
     api_response = api_instance.instance_dv_serial_patch(dvserial=dvserial)
@@ -2441,11 +2441,11 @@ except ApiException as e:
         
- Boolean + Integer
- Set to true to set DV serial processing + Set to non zero (true) to set DV serial processing
@@ -3209,7 +3209,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for a Tx device set + Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx) try { DeviceSet result = apiInstance.instanceDeviceSetsPost(tx); System.out.println(result); @@ -3228,7 +3228,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for a Tx device set + Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx) try { DeviceSet result = apiInstance.instanceDeviceSetsPost(tx); System.out.println(result); @@ -3244,7 +3244,7 @@ public class DefaultApiExample {
Coming Soon!
-->
-
Boolean *tx = true; // Set to true for a Tx device set (optional)
+                              
Integer *tx = 56; // Set to non zero (true) for a Tx device set (default Rx) (optional)
 
 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
@@ -3266,7 +3266,7 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
 var api = new SdRangel.DefaultApi()
 
 var opts = { 
-  'tx': true // {Boolean} Set to true for a Tx device set
+  'tx': 56 // {Integer} Set to non zero (true) for a Tx device set (default Rx)
 };
 
 var callback = function(error, data, response) {
@@ -3298,7 +3298,7 @@ namespace Example
         {
             
             var apiInstance = new DefaultApi();
-            var tx = true;  // Boolean | Set to true for a Tx device set (optional) 
+            var tx = 56;  // Integer | Set to non zero (true) for a Tx device set (default Rx) (optional) 
 
             try
             {
@@ -3320,7 +3320,7 @@ namespace Example
 require_once(__DIR__ . '/vendor/autoload.php');
 
 $api_instance = new Swagger\Client\Api\DefaultApi();
-$tx = true; // Boolean | Set to true for a Tx device set
+$tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
 
 try {
     $result = $api_instance->instanceDeviceSetsPost($tx);
@@ -3337,7 +3337,7 @@ use WWW::SwaggerClient::Configuration;
 use WWW::SwaggerClient::DefaultApi;
 
 my $api_instance = WWW::SwaggerClient::DefaultApi->new();
-my $tx = true; # Boolean | Set to true for a Tx device set
+my $tx = 56; # Integer | Set to non zero (true) for a Tx device set (default Rx)
 
 eval { 
     my $result = $api_instance->instanceDeviceSetsPost(tx => $tx);
@@ -3357,7 +3357,7 @@ from pprint import pprint
 
 # create an instance of the API class
 api_instance = swagger_client.DefaultApi()
-tx = true # Boolean | Set to true for a Tx device set (optional)
+tx = 56 # Integer | Set to non zero (true) for a Tx device set (default Rx) (optional)
 
 try: 
     api_response = api_instance.instance_device_sets_post(tx=tx)
@@ -3387,11 +3387,11 @@ except ApiException as e:
         
- Boolean + Integer
- Set to true for a Tx device set + Set to non zero (true) for a Tx device set (default Rx)
@@ -3547,7 +3547,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for Tx direction + Integer tx = 56; // Integer | Set to non zero (true) for Tx direction (default Rx) try { InstanceDevicesResponse result = apiInstance.instanceDevices(tx); System.out.println(result); @@ -3566,7 +3566,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for Tx direction + Integer tx = 56; // Integer | Set to non zero (true) for Tx direction (default Rx) try { InstanceDevicesResponse result = apiInstance.instanceDevices(tx); System.out.println(result); @@ -3582,7 +3582,7 @@ public class DefaultApiExample {
Coming Soon!
-->
-
Boolean *tx = true; // Set to true for Tx direction (optional)
+                              
Integer *tx = 56; // Set to non zero (true) for Tx direction (default Rx) (optional)
 
 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
@@ -3604,7 +3604,7 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
 var api = new SdRangel.DefaultApi()
 
 var opts = { 
-  'tx': true // {Boolean} Set to true for Tx direction
+  'tx': 56 // {Integer} Set to non zero (true) for Tx direction (default Rx)
 };
 
 var callback = function(error, data, response) {
@@ -3636,7 +3636,7 @@ namespace Example
         {
             
             var apiInstance = new DefaultApi();
-            var tx = true;  // Boolean | Set to true for Tx direction (optional) 
+            var tx = 56;  // Integer | Set to non zero (true) for Tx direction (default Rx) (optional) 
 
             try
             {
@@ -3658,7 +3658,7 @@ namespace Example
 require_once(__DIR__ . '/vendor/autoload.php');
 
 $api_instance = new Swagger\Client\Api\DefaultApi();
-$tx = true; // Boolean | Set to true for Tx direction
+$tx = 56; // Integer | Set to non zero (true) for Tx direction (default Rx)
 
 try {
     $result = $api_instance->instanceDevices($tx);
@@ -3675,7 +3675,7 @@ use WWW::SwaggerClient::Configuration;
 use WWW::SwaggerClient::DefaultApi;
 
 my $api_instance = WWW::SwaggerClient::DefaultApi->new();
-my $tx = true; # Boolean | Set to true for Tx direction
+my $tx = 56; # Integer | Set to non zero (true) for Tx direction (default Rx)
 
 eval { 
     my $result = $api_instance->instanceDevices(tx => $tx);
@@ -3695,7 +3695,7 @@ from pprint import pprint
 
 # create an instance of the API class
 api_instance = swagger_client.DefaultApi()
-tx = true # Boolean | Set to true for Tx direction (optional)
+tx = 56 # Integer | Set to non zero (true) for Tx direction (default Rx) (optional)
 
 try: 
     api_response = api_instance.instance_devices(tx=tx)
@@ -3725,11 +3725,11 @@ except ApiException as e:
         
- Boolean + Integer
- Set to true for Tx direction + Set to non zero (true) for Tx direction (default Rx)
@@ -7356,7 +7356,7 @@ except ApiException as e:
- Generated 2017-11-24T00:44:01.796+01:00 + Generated 2017-11-24T00:55:01.257+01:00
diff --git a/sdrbase/webapi/webapirequestmapper.cpp b/sdrbase/webapi/webapirequestmapper.cpp index b0d4df33d..1a35cd8af 100644 --- a/sdrbase/webapi/webapirequestmapper.cpp +++ b/sdrbase/webapi/webapirequestmapper.cpp @@ -82,7 +82,7 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http if (request.getMethod() == "GET") { QByteArray txStr = request.getParameter("tx"); - bool tx = (txStr == "true"); + bool tx = (txStr == "1"); int status = m_adapter->instanceDevices(tx, normalResponse, errorResponse); response.setStatus(status); @@ -107,7 +107,7 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http if (request.getMethod() == "GET") { QByteArray txStr = request.getParameter("tx"); - bool tx = (txStr == "true"); + bool tx = (txStr == "1"); int status = m_adapter->instanceChannels(tx, normalResponse, errorResponse); response.setStatus(status); diff --git a/swagger/sdrangel/api/swagger/swagger.yaml b/swagger/sdrangel/api/swagger/swagger.yaml index e0698743e..fd6592b0b 100644 --- a/swagger/sdrangel/api/swagger/swagger.yaml +++ b/swagger/sdrangel/api/swagger/swagger.yaml @@ -50,9 +50,9 @@ paths: parameters: - name: tx in: query - description: Set to true for Tx direction + description: Set to non zero (true) for Tx direction (default Rx) required: false - type: boolean + type: integer responses: "200": description: Success @@ -72,9 +72,9 @@ paths: parameters: - name: tx in: query - description: Set to true for Tx channels + description: Set to non zero (true) for Tx channels (default Rx) required: false - type: boolean + type: integer responses: "200": description: Success @@ -217,9 +217,9 @@ paths: parameters: - name: dvserial in: query - description: Set to true to set DV serial processing + description: Set to non zero (true) to set DV serial processing required: false - type: boolean + type: integer responses: "200": description: On success return list of devices or empty list if unset @@ -383,9 +383,9 @@ paths: parameters: - name: tx in: query - description: Set to true for a Tx device set + description: Set to non zero (true) for a Tx device set (default Rx) required: false - type: boolean + type: integer responses: "200": description: On success return new device set diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 798f8d825..5efb84fe0 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -1925,7 +1925,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for Tx channels + Integer tx = 56; // Integer | Set to non zero (true) for Tx channels (default Rx) try { InstanceChannelsResponse result = apiInstance.instanceChannels(tx); System.out.println(result); @@ -1944,7 +1944,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for Tx channels + Integer tx = 56; // Integer | Set to non zero (true) for Tx channels (default Rx) try { InstanceChannelsResponse result = apiInstance.instanceChannels(tx); System.out.println(result); @@ -1960,7 +1960,7 @@ public class DefaultApiExample {
Coming Soon!
-->
-
Boolean *tx = true; // Set to true for Tx channels (optional)
+                              
Integer *tx = 56; // Set to non zero (true) for Tx channels (default Rx) (optional)
 
 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
@@ -1982,7 +1982,7 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
 var api = new SdRangel.DefaultApi()
 
 var opts = { 
-  'tx': true // {Boolean} Set to true for Tx channels
+  'tx': 56 // {Integer} Set to non zero (true) for Tx channels (default Rx)
 };
 
 var callback = function(error, data, response) {
@@ -2014,7 +2014,7 @@ namespace Example
         {
             
             var apiInstance = new DefaultApi();
-            var tx = true;  // Boolean | Set to true for Tx channels (optional) 
+            var tx = 56;  // Integer | Set to non zero (true) for Tx channels (default Rx) (optional) 
 
             try
             {
@@ -2036,7 +2036,7 @@ namespace Example
 require_once(__DIR__ . '/vendor/autoload.php');
 
 $api_instance = new Swagger\Client\Api\DefaultApi();
-$tx = true; // Boolean | Set to true for Tx channels
+$tx = 56; // Integer | Set to non zero (true) for Tx channels (default Rx)
 
 try {
     $result = $api_instance->instanceChannels($tx);
@@ -2053,7 +2053,7 @@ use WWW::SwaggerClient::Configuration;
 use WWW::SwaggerClient::DefaultApi;
 
 my $api_instance = WWW::SwaggerClient::DefaultApi->new();
-my $tx = true; # Boolean | Set to true for Tx channels
+my $tx = 56; # Integer | Set to non zero (true) for Tx channels (default Rx)
 
 eval { 
     my $result = $api_instance->instanceChannels(tx => $tx);
@@ -2073,7 +2073,7 @@ from pprint import pprint
 
 # create an instance of the API class
 api_instance = swagger_client.DefaultApi()
-tx = true # Boolean | Set to true for Tx channels (optional)
+tx = 56 # Integer | Set to non zero (true) for Tx channels (default Rx) (optional)
 
 try: 
     api_response = api_instance.instance_channels(tx=tx)
@@ -2103,11 +2103,11 @@ except ApiException as e:
         
- Boolean + Integer
- Set to true for Tx channels + Set to non zero (true) for Tx channels (default Rx)
@@ -2263,7 +2263,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean dvserial = true; // Boolean | Set to true to set DV serial processing + Integer dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing try { DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial); System.out.println(result); @@ -2282,7 +2282,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean dvserial = true; // Boolean | Set to true to set DV serial processing + Integer dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing try { DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial); System.out.println(result); @@ -2298,7 +2298,7 @@ public class DefaultApiExample {
Coming Soon!
-->
-
Boolean *dvserial = true; // Set to true to set DV serial processing (optional)
+                              
Integer *dvserial = 56; // Set to non zero (true) to set DV serial processing (optional)
 
 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
@@ -2320,7 +2320,7 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
 var api = new SdRangel.DefaultApi()
 
 var opts = { 
-  'dvserial': true // {Boolean} Set to true to set DV serial processing
+  'dvserial': 56 // {Integer} Set to non zero (true) to set DV serial processing
 };
 
 var callback = function(error, data, response) {
@@ -2352,7 +2352,7 @@ namespace Example
         {
             
             var apiInstance = new DefaultApi();
-            var dvserial = true;  // Boolean | Set to true to set DV serial processing (optional) 
+            var dvserial = 56;  // Integer | Set to non zero (true) to set DV serial processing (optional) 
 
             try
             {
@@ -2374,7 +2374,7 @@ namespace Example
 require_once(__DIR__ . '/vendor/autoload.php');
 
 $api_instance = new Swagger\Client\Api\DefaultApi();
-$dvserial = true; // Boolean | Set to true to set DV serial processing
+$dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing
 
 try {
     $result = $api_instance->instanceDVSerialPatch($dvserial);
@@ -2391,7 +2391,7 @@ use WWW::SwaggerClient::Configuration;
 use WWW::SwaggerClient::DefaultApi;
 
 my $api_instance = WWW::SwaggerClient::DefaultApi->new();
-my $dvserial = true; # Boolean | Set to true to set DV serial processing
+my $dvserial = 56; # Integer | Set to non zero (true) to set DV serial processing
 
 eval { 
     my $result = $api_instance->instanceDVSerialPatch(dvserial => $dvserial);
@@ -2411,7 +2411,7 @@ from pprint import pprint
 
 # create an instance of the API class
 api_instance = swagger_client.DefaultApi()
-dvserial = true # Boolean | Set to true to set DV serial processing (optional)
+dvserial = 56 # Integer | Set to non zero (true) to set DV serial processing (optional)
 
 try: 
     api_response = api_instance.instance_dv_serial_patch(dvserial=dvserial)
@@ -2441,11 +2441,11 @@ except ApiException as e:
         
- Boolean + Integer
- Set to true to set DV serial processing + Set to non zero (true) to set DV serial processing
@@ -3209,7 +3209,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for a Tx device set + Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx) try { DeviceSet result = apiInstance.instanceDeviceSetsPost(tx); System.out.println(result); @@ -3228,7 +3228,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for a Tx device set + Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx) try { DeviceSet result = apiInstance.instanceDeviceSetsPost(tx); System.out.println(result); @@ -3244,7 +3244,7 @@ public class DefaultApiExample {
Coming Soon!
-->
-
Boolean *tx = true; // Set to true for a Tx device set (optional)
+                              
Integer *tx = 56; // Set to non zero (true) for a Tx device set (default Rx) (optional)
 
 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
@@ -3266,7 +3266,7 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
 var api = new SdRangel.DefaultApi()
 
 var opts = { 
-  'tx': true // {Boolean} Set to true for a Tx device set
+  'tx': 56 // {Integer} Set to non zero (true) for a Tx device set (default Rx)
 };
 
 var callback = function(error, data, response) {
@@ -3298,7 +3298,7 @@ namespace Example
         {
             
             var apiInstance = new DefaultApi();
-            var tx = true;  // Boolean | Set to true for a Tx device set (optional) 
+            var tx = 56;  // Integer | Set to non zero (true) for a Tx device set (default Rx) (optional) 
 
             try
             {
@@ -3320,7 +3320,7 @@ namespace Example
 require_once(__DIR__ . '/vendor/autoload.php');
 
 $api_instance = new Swagger\Client\Api\DefaultApi();
-$tx = true; // Boolean | Set to true for a Tx device set
+$tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
 
 try {
     $result = $api_instance->instanceDeviceSetsPost($tx);
@@ -3337,7 +3337,7 @@ use WWW::SwaggerClient::Configuration;
 use WWW::SwaggerClient::DefaultApi;
 
 my $api_instance = WWW::SwaggerClient::DefaultApi->new();
-my $tx = true; # Boolean | Set to true for a Tx device set
+my $tx = 56; # Integer | Set to non zero (true) for a Tx device set (default Rx)
 
 eval { 
     my $result = $api_instance->instanceDeviceSetsPost(tx => $tx);
@@ -3357,7 +3357,7 @@ from pprint import pprint
 
 # create an instance of the API class
 api_instance = swagger_client.DefaultApi()
-tx = true # Boolean | Set to true for a Tx device set (optional)
+tx = 56 # Integer | Set to non zero (true) for a Tx device set (default Rx) (optional)
 
 try: 
     api_response = api_instance.instance_device_sets_post(tx=tx)
@@ -3387,11 +3387,11 @@ except ApiException as e:
         
- Boolean + Integer
- Set to true for a Tx device set + Set to non zero (true) for a Tx device set (default Rx)
@@ -3547,7 +3547,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for Tx direction + Integer tx = 56; // Integer | Set to non zero (true) for Tx direction (default Rx) try { InstanceDevicesResponse result = apiInstance.instanceDevices(tx); System.out.println(result); @@ -3566,7 +3566,7 @@ public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); - Boolean tx = true; // Boolean | Set to true for Tx direction + Integer tx = 56; // Integer | Set to non zero (true) for Tx direction (default Rx) try { InstanceDevicesResponse result = apiInstance.instanceDevices(tx); System.out.println(result); @@ -3582,7 +3582,7 @@ public class DefaultApiExample {
Coming Soon!
-->
-
Boolean *tx = true; // Set to true for Tx direction (optional)
+                              
Integer *tx = 56; // Set to non zero (true) for Tx direction (default Rx) (optional)
 
 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
@@ -3604,7 +3604,7 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
 var api = new SdRangel.DefaultApi()
 
 var opts = { 
-  'tx': true // {Boolean} Set to true for Tx direction
+  'tx': 56 // {Integer} Set to non zero (true) for Tx direction (default Rx)
 };
 
 var callback = function(error, data, response) {
@@ -3636,7 +3636,7 @@ namespace Example
         {
             
             var apiInstance = new DefaultApi();
-            var tx = true;  // Boolean | Set to true for Tx direction (optional) 
+            var tx = 56;  // Integer | Set to non zero (true) for Tx direction (default Rx) (optional) 
 
             try
             {
@@ -3658,7 +3658,7 @@ namespace Example
 require_once(__DIR__ . '/vendor/autoload.php');
 
 $api_instance = new Swagger\Client\Api\DefaultApi();
-$tx = true; // Boolean | Set to true for Tx direction
+$tx = 56; // Integer | Set to non zero (true) for Tx direction (default Rx)
 
 try {
     $result = $api_instance->instanceDevices($tx);
@@ -3675,7 +3675,7 @@ use WWW::SwaggerClient::Configuration;
 use WWW::SwaggerClient::DefaultApi;
 
 my $api_instance = WWW::SwaggerClient::DefaultApi->new();
-my $tx = true; # Boolean | Set to true for Tx direction
+my $tx = 56; # Integer | Set to non zero (true) for Tx direction (default Rx)
 
 eval { 
     my $result = $api_instance->instanceDevices(tx => $tx);
@@ -3695,7 +3695,7 @@ from pprint import pprint
 
 # create an instance of the API class
 api_instance = swagger_client.DefaultApi()
-tx = true # Boolean | Set to true for Tx direction (optional)
+tx = 56 # Integer | Set to non zero (true) for Tx direction (default Rx) (optional)
 
 try: 
     api_response = api_instance.instance_devices(tx=tx)
@@ -3725,11 +3725,11 @@ except ApiException as e:
         
- Boolean + Integer
- Set to true for Tx direction + Set to non zero (true) for Tx direction (default Rx)
@@ -7356,7 +7356,7 @@ except ApiException as e:
- Generated 2017-11-24T00:44:01.796+01:00 + Generated 2017-11-24T00:55:01.257+01:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGDefaultApi.cpp b/swagger/sdrangel/code/qt5/client/SWGDefaultApi.cpp index 1ccea9df5..edfb05228 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDefaultApi.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDefaultApi.cpp @@ -127,7 +127,7 @@ SWGDefaultApi::instanceAudioPatchCallback(HttpRequestWorker * worker) { } void -SWGDefaultApi::instanceChannels(bool tx) { +SWGDefaultApi::instanceChannels(qint32 tx) { QString fullPath; fullPath.append(this->host).append(this->basePath).append("/sdrangel/channels"); @@ -183,7 +183,7 @@ SWGDefaultApi::instanceChannelsCallback(HttpRequestWorker * worker) { } void -SWGDefaultApi::instanceDVSerialPatch(bool dvserial) { +SWGDefaultApi::instanceDVSerialPatch(qint32 dvserial) { QString fullPath; fullPath.append(this->host).append(this->basePath).append("/sdrangel/dvserial"); @@ -335,7 +335,7 @@ SWGDefaultApi::instanceDeviceSetsGetCallback(HttpRequestWorker * worker) { } void -SWGDefaultApi::instanceDeviceSetsPost(bool tx) { +SWGDefaultApi::instanceDeviceSetsPost(qint32 tx) { QString fullPath; fullPath.append(this->host).append(this->basePath).append("/sdrangel/devicesets"); @@ -391,7 +391,7 @@ SWGDefaultApi::instanceDeviceSetsPostCallback(HttpRequestWorker * worker) { } void -SWGDefaultApi::instanceDevices(bool tx) { +SWGDefaultApi::instanceDevices(qint32 tx) { QString fullPath; fullPath.append(this->host).append(this->basePath).append("/sdrangel/devices"); diff --git a/swagger/sdrangel/code/qt5/client/SWGDefaultApi.h b/swagger/sdrangel/code/qt5/client/SWGDefaultApi.h index 0ca24a101..364803ca8 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDefaultApi.h +++ b/swagger/sdrangel/code/qt5/client/SWGDefaultApi.h @@ -48,12 +48,12 @@ public: void instanceAudioGet(); void instanceAudioPatch(SWGAudioDevicesSelect body); - void instanceChannels(bool tx); - void instanceDVSerialPatch(bool dvserial); + void instanceChannels(qint32 tx); + void instanceDVSerialPatch(qint32 dvserial); void instanceDeviceSetsDelete(); void instanceDeviceSetsGet(); - void instanceDeviceSetsPost(bool tx); - void instanceDevices(bool tx); + void instanceDeviceSetsPost(qint32 tx); + void instanceDevices(qint32 tx); void instanceLocationGet(); void instanceLocationPut(SWGLocationInformation body); void instanceLoggingGet();