1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-09-04 06:07:49 -04:00

AMBE support: removed code of former /sdrangel/dvserial endpoint. Fixed typo in DVSerial

This commit is contained in:
f4exb 2019-07-21 09:47:11 +02:00
parent 4ef1f011cb
commit 0d26936e61
16 changed files with 91 additions and 1797 deletions

View File

@ -2102,7 +2102,16 @@ margin-bottom: 20px;
}, },
"description" : "DSDDemod" "description" : "DSDDemod"
}; };
defs.DVSeralDevices = { defs.DVSerialDevice = {
"properties" : {
"deviceName" : {
"type" : "string",
"description" : "Name of the serial device in the system"
}
},
"description" : "DV serial device details"
};
defs.DVSerialDevices = {
"required" : [ "nbDevices" ], "required" : [ "nbDevices" ],
"properties" : { "properties" : {
"nbDevices" : { "nbDevices" : {
@ -2118,15 +2127,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "List of DV serial devices available in the system" "description" : "List of DV serial devices available in the system"
};
defs.DVSerialDevice = {
"properties" : {
"deviceName" : {
"type" : "string",
"description" : "Name of the serial device in the system"
}
},
"description" : "DV serial device details"
}; };
defs.DeviceListItem = { defs.DeviceListItem = {
"properties" : { "properties" : {
@ -6229,12 +6229,6 @@ margin-bottom: 20px;
<li data-group="Instance" data-name="instanceChannels" class=""> <li data-group="Instance" data-name="instanceChannels" class="">
<a href="#api-Instance-instanceChannels">instanceChannels</a> <a href="#api-Instance-instanceChannels">instanceChannels</a>
</li> </li>
<li data-group="Instance" data-name="instanceDVSerialGet" class="">
<a href="#api-Instance-instanceDVSerialGet">instanceDVSerialGet</a>
</li>
<li data-group="Instance" data-name="instanceDVSerialPatch" class="">
<a href="#api-Instance-instanceDVSerialPatch">instanceDVSerialPatch</a>
</li>
<li data-group="Instance" data-name="instanceDelete" class=""> <li data-group="Instance" data-name="instanceDelete" class="">
<a href="#api-Instance-instanceDelete">instanceDelete</a> <a href="#api-Instance-instanceDelete">instanceDelete</a>
</li> </li>
@ -16808,7 +16802,7 @@ public class InstanceApiExample {
InstanceApi apiInstance = new InstanceApi(); InstanceApi apiInstance = new InstanceApi();
try { try {
DVSeralDevices result = apiInstance.instanceAMBESerialGet(); DVSerialDevices result = apiInstance.instanceAMBESerialGet();
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceAMBESerialGet"); System.err.println("Exception when calling InstanceApi#instanceAMBESerialGet");
@ -16826,7 +16820,7 @@ public class InstanceApiExample {
public static void main(String[] args) { public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi(); InstanceApi apiInstance = new InstanceApi();
try { try {
DVSeralDevices result = apiInstance.instanceAMBESerialGet(); DVSerialDevices result = apiInstance.instanceAMBESerialGet();
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceAMBESerialGet"); System.err.println("Exception when calling InstanceApi#instanceAMBESerialGet");
@ -16844,7 +16838,7 @@ public class InstanceApiExample {
InstanceApi *apiInstance = [[InstanceApi alloc] init]; InstanceApi *apiInstance = [[InstanceApi alloc] init];
[apiInstance instanceAMBESerialGetWithCompletionHandler: [apiInstance instanceAMBESerialGetWithCompletionHandler:
^(DVSeralDevices output, NSError* error) { ^(DVSerialDevices output, NSError* error) {
if (output) { if (output) {
NSLog(@"%@", output); NSLog(@"%@", output);
} }
@ -16892,7 +16886,7 @@ namespace Example
try try
{ {
DVSeralDevices result = apiInstance.instanceAMBESerialGet(); DVSerialDevices result = apiInstance.instanceAMBESerialGet();
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -16979,7 +16973,7 @@ except ApiException as e:
var schemaWrapper = { var schemaWrapper = {
"description" : "On success return list of device paths possibly empty", "description" : "On success return list of device paths possibly empty",
"schema" : { "schema" : {
"$ref" : "#/definitions/DVSeralDevices" "$ref" : "#/definitions/DVSerialDevices"
} }
}; };
var schema = schemaWrapper.schema; var schema = schemaWrapper.schema;
@ -20192,714 +20186,6 @@ except ApiException as e:
</article> </article>
</div> </div>
<hr> <hr>
<div id="api-Instance-instanceDVSerialGet">
<article id="api-Instance-instanceDVSerialGet-0" data-group="User" data-name="instanceDVSerialGet" data-version="0">
<div class="pull-left">
<h1>instanceDVSerialGet</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Get DV serial processing parameters for AMBE frames decoding in digital voice modes</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrangel/dvserial</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Instance-instanceDVSerialGet-0-curl">Curl</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-java">Java</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-csharp">C#</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-php">PHP</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-perl">Perl</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-python">Python</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Instance-instanceDVSerialGet-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET "http://localhost/sdrangel/dvserial"</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-java">
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.*;
import SWGSDRangel.auth.*;
import SWGSDRangel.model.*;
import SWGSDRangel.api.InstanceApi;
import java.io.File;
import java.util.*;
public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
try {
DVSeralDevices result = apiInstance.instanceDVSerialGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceDVSerialGet");
e.printStackTrace();
}
}
}</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-android">
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.api.InstanceApi;
public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
try {
DVSeralDevices result = apiInstance.instanceDVSerialGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceDVSerialGet");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">
InstanceApi *apiInstance = [[InstanceApi alloc] init];
[apiInstance instanceDVSerialGetWithCompletionHandler:
^(DVSeralDevices output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-javascript">
<pre class="prettyprint"><code class="language-js">var SdRangel = require('sd_rangel');
var api = new SdRangel.InstanceApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceDVSerialGet(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using SWGSDRangel.Api;
using SWGSDRangel.Client;
using SWGSDRangel.Model;
namespace Example
{
public class instanceDVSerialGetExample
{
public void main()
{
var apiInstance = new InstanceApi();
try
{
DVSeralDevices result = apiInstance.instanceDVSerialGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling InstanceApi.instanceDVSerialGet: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\InstanceApi();
try {
$result = $api_instance->instanceDVSerialGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InstanceApi->instanceDVSerialGet: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use SWGSDRangel::Configuration;
use SWGSDRangel::InstanceApi;
my $api_instance = SWGSDRangel::InstanceApi->new();
eval {
my $result = $api_instance->instanceDVSerialGet();
print Dumper($result);
};
if ($@) {
warn "Exception when calling InstanceApi->instanceDVSerialGet: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_sdrangel
from swagger_sdrangel.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_sdrangel.InstanceApi()
try:
api_response = api_instance.instance_dv_serial_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling InstanceApi->instanceDVSerialGet: %s\n" % e)</code></pre>
</div>
</div>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3> Status: 200 - On success return list of devices or empty list if unset </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialGet-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialGet-200-schema">
<div id='responses-instanceDVSerialGet-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "On success return list of devices or empty list if unset",
"schema" : {
"$ref" : "#/definitions/DVSeralDevices"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialGet-200-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialGet-200-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialGet-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 500 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialGet-500-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialGet-500-schema">
<div id='responses-instanceDVSerialGet-500-schema-500' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Error",
"schema" : {
"$ref" : "#/definitions/ErrorResponse"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialGet-500-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialGet-500-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialGet-500-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 501 - Function not implemented </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialGet-501-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialGet-501-schema">
<div id='responses-instanceDVSerialGet-501-schema-501' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Function not implemented",
"schema" : {
"$ref" : "#/definitions/ErrorResponse"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialGet-501-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialGet-501-schema-501');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialGet-501-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Instance-instanceDVSerialPatch">
<article id="api-Instance-instanceDVSerialPatch-0" data-group="User" data-name="instanceDVSerialPatch" data-version="0">
<div class="pull-left">
<h1>instanceDVSerialPatch</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Set or reset DV serial processing for AMBE frames decoding in digital voice modes</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/sdrangel/dvserial</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Instance-instanceDVSerialPatch-0-curl">Curl</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-java">Java</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-csharp">C#</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-php">PHP</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-perl">Perl</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-python">Python</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Instance-instanceDVSerialPatch-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PATCH "http://localhost/sdrangel/dvserial?dvserial="</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-java">
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.*;
import SWGSDRangel.auth.*;
import SWGSDRangel.model.*;
import SWGSDRangel.api.InstanceApi;
import java.io.File;
import java.util.*;
public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
Integer dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing
try {
DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceDVSerialPatch");
e.printStackTrace();
}
}
}</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-android">
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.api.InstanceApi;
public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
Integer dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing
try {
DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceDVSerialPatch");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-objc">
<pre class="prettyprint"><code class="language-cpp">Integer *dvserial = 56; // Set to non zero (true) to set DV serial processing (optional)
InstanceApi *apiInstance = [[InstanceApi alloc] init];
[apiInstance instanceDVSerialPatchWith:dvserial
completionHandler: ^(DVSeralDevices output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-javascript">
<pre class="prettyprint"><code class="language-js">var SdRangel = require('sd_rangel');
var api = new SdRangel.InstanceApi()
var opts = {
'dvserial': 56 // {Integer} Set to non zero (true) to set DV serial processing
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceDVSerialPatch(opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using SWGSDRangel.Api;
using SWGSDRangel.Client;
using SWGSDRangel.Model;
namespace Example
{
public class instanceDVSerialPatchExample
{
public void main()
{
var apiInstance = new InstanceApi();
var dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing (optional)
try
{
DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling InstanceApi.instanceDVSerialPatch: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\InstanceApi();
$dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing
try {
$result = $api_instance->instanceDVSerialPatch($dvserial);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InstanceApi->instanceDVSerialPatch: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use SWGSDRangel::Configuration;
use SWGSDRangel::InstanceApi;
my $api_instance = SWGSDRangel::InstanceApi->new();
my $dvserial = 56; # Integer | Set to non zero (true) to set DV serial processing
eval {
my $result = $api_instance->instanceDVSerialPatch(dvserial => $dvserial);
print Dumper($result);
};
if ($@) {
warn "Exception when calling InstanceApi->instanceDVSerialPatch: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_sdrangel
from swagger_sdrangel.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_sdrangel.InstanceApi()
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)
pprint(api_response)
except ApiException as e:
print("Exception when calling InstanceApi->instanceDVSerialPatch: %s\n" % e)</code></pre>
</div>
</div>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">dvserial</td>
<td>
<div id="d2e199_instanceDVSerialPatch_dvserial">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>
<div class="inner description">
Set to non zero (true) to set DV serial processing
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - On success return list of devices or empty list if unset </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialPatch-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialPatch-200-schema">
<div id='responses-instanceDVSerialPatch-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "On success return list of devices or empty list if unset",
"schema" : {
"$ref" : "#/definitions/DVSeralDevices"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialPatch-200-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialPatch-200-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialPatch-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 500 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialPatch-500-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialPatch-500-schema">
<div id='responses-instanceDVSerialPatch-500-schema-500' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Error",
"schema" : {
"$ref" : "#/definitions/ErrorResponse"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialPatch-500-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialPatch-500-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialPatch-500-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 501 - Function not implemented </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialPatch-501-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialPatch-501-schema">
<div id='responses-instanceDVSerialPatch-501-schema-501' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Function not implemented",
"schema" : {
"$ref" : "#/definitions/ErrorResponse"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialPatch-501-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialPatch-501-schema-501');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialPatch-501-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Instance-instanceDelete"> <div id="api-Instance-instanceDelete">
<article id="api-Instance-instanceDelete-0" data-group="User" data-name="instanceDelete" data-version="0"> <article id="api-Instance-instanceDelete-0" data-group="User" data-name="instanceDelete" data-version="0">
<div class="pull-left"> <div class="pull-left">
@ -27046,7 +26332,7 @@ except ApiException as e:
</div> </div>
<div id="generator"> <div id="generator">
<div class="content"> <div class="content">
Generated 2019-07-20T20:43:22.760+02:00 Generated 2019-07-21T09:34:48.176+02:00
</div> </div>
</div> </div>
</div> </div>

View File

@ -373,43 +373,6 @@ paths:
"501": "501":
$ref: "#/responses/Response_501" $ref: "#/responses/Response_501"
/sdrangel/dvserial:
x-swagger-router-controller: instance
get:
description: Get DV serial processing parameters for AMBE frames decoding in digital voice modes
operationId: instanceDVSerialGet
tags:
- Instance
responses:
"200":
description: On success return list of devices or empty list if unset
schema:
$ref: "#/definitions/DVSeralDevices"
"500":
$ref: "#/responses/Response_500"
"501":
$ref: "#/responses/Response_501"
patch:
description: Set or reset DV serial processing for AMBE frames decoding in digital voice modes
operationId: instanceDVSerialPatch
tags:
- Instance
parameters:
- name: dvserial
in: query
description: Set to non zero (true) to set DV serial processing
required: false
type: integer
responses:
"200":
description: On success return list of devices or empty list if unset
schema:
$ref: "#/definitions/DVSeralDevices"
"500":
$ref: "#/responses/Response_500"
"501":
$ref: "#/responses/Response_501"
/sdrangel/ambe/serial: /sdrangel/ambe/serial:
x-swagger-router-controller: instance x-swagger-router-controller: instance
get: get:
@ -421,7 +384,7 @@ paths:
"200": "200":
description: On success return list of device paths possibly empty description: On success return list of device paths possibly empty
schema: schema:
$ref: "#/definitions/DVSeralDevices" $ref: "#/definitions/DVSerialDevices"
"500": "500":
$ref: "#/responses/Response_500" $ref: "#/responses/Response_500"
"501": "501":
@ -431,7 +394,7 @@ paths:
x-swagger-router-controller: instance x-swagger-router-controller: instance
get: get:
description: get the list of AMBE devices (serial or address) used for AMBE frames decoding in digital voice modes description: get the list of AMBE devices (serial or address) used for AMBE frames decoding in digital voice modes
operationId: instanceAMBEDevicesGet operationId: InstanceAMBEDevicesGet
tags: tags:
- Instance - Instance
responses: responses:
@ -445,7 +408,7 @@ paths:
$ref: "#/responses/Response_501" $ref: "#/responses/Response_501"
put: put:
description: Replace the list of active devices description: Replace the list of active devices
operationId: instanceAMBEDevicesPut operationId: InstanceAMBEDevicesPut
tags: tags:
- Instance - Instance
consumes: consumes:
@ -468,7 +431,7 @@ paths:
$ref: "#/responses/Response_501" $ref: "#/responses/Response_501"
delete: delete:
description: Emtpy the active devices thus effectively closing down AMBE devices support description: Emtpy the active devices thus effectively closing down AMBE devices support
operationId: instanceAMBEDevicesDelete operationId: InstanceAMBEDevicesDelete
tags: tags:
- Instance - Instance
responses: responses:
@ -482,7 +445,7 @@ paths:
$ref: "#/responses/Response_501" $ref: "#/responses/Response_501"
patch: patch:
description: Add and/or delete devices to/from the active list description: Add and/or delete devices to/from the active list
operationId: instanceAMBEDevicesPatch operationId: InstanceAMBEDevicesPatch
tags: tags:
- Instance - Instance
consumes: consumes:
@ -1731,7 +1694,7 @@ definitions:
type: number type: number
format: float format: float
DVSeralDevices: DVSerialDevices:
description: "List of DV serial devices available in the system" description: "List of DV serial devices available in the system"
required: required:
- nbDevices - nbDevices

View File

@ -29,7 +29,6 @@ QString WebAPIAdapterInterface::instanceAudioOutputParametersURL = "/sdrangel/au
QString WebAPIAdapterInterface::instanceAudioInputCleanupURL = "/sdrangel/audio/input/cleanup"; QString WebAPIAdapterInterface::instanceAudioInputCleanupURL = "/sdrangel/audio/input/cleanup";
QString WebAPIAdapterInterface::instanceAudioOutputCleanupURL = "/sdrangel/audio/output/cleanup"; QString WebAPIAdapterInterface::instanceAudioOutputCleanupURL = "/sdrangel/audio/output/cleanup";
QString WebAPIAdapterInterface::instanceLocationURL = "/sdrangel/location"; QString WebAPIAdapterInterface::instanceLocationURL = "/sdrangel/location";
QString WebAPIAdapterInterface::instanceDVSerialURL = "/sdrangel/dvserial";
QString WebAPIAdapterInterface::instanceAMBESerialURL = "/sdrangel/ambe/serial"; QString WebAPIAdapterInterface::instanceAMBESerialURL = "/sdrangel/ambe/serial";
QString WebAPIAdapterInterface::instanceAMBEDevicesURL = "/sdrangel/ambe/devices"; QString WebAPIAdapterInterface::instanceAMBEDevicesURL = "/sdrangel/ambe/devices";
QString WebAPIAdapterInterface::instancePresetsURL = "/sdrangel/presets"; QString WebAPIAdapterInterface::instancePresetsURL = "/sdrangel/presets";

View File

@ -37,7 +37,7 @@ namespace SWGSDRangel
class SWGAudioInputDevice; class SWGAudioInputDevice;
class SWGAudioOutputDevice; class SWGAudioOutputDevice;
class SWGLocationInformation; class SWGLocationInformation;
class SWGDVSeralDevices; class SWGDVSerialDevices;
class SWGAMBEDevices; class SWGAMBEDevices;
class SWGPresets; class SWGPresets;
class SWGPresetTransfer; class SWGPresetTransfer;
@ -281,42 +281,12 @@ public:
return 501; return 501;
} }
/**
* Handler of /sdrangel/dvserial (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
* returns the Http status code (default 501: not implemented)
*/
virtual int instanceDVSerialGet(
SWGSDRangel::SWGDVSeralDevices& response,
SWGSDRangel::SWGErrorResponse& error)
{
(void) response;
error.init();
*error.getMessage() = QString("Function not implemented");
return 501;
}
/**
* Handler of /sdrangel/dvserial (PUT) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
* returns the Http status code (default 501: not implemented)
*/
virtual int instanceDVSerialPatch(
bool dvserial,
SWGSDRangel::SWGDVSeralDevices& response,
SWGSDRangel::SWGErrorResponse& error)
{
(void) dvserial;
(void) response;
error.init();
*error.getMessage() = QString("Function not implemented");
return 501;
}
/** /**
* Handler of /sdrangel/ambe/serial (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels * Handler of /sdrangel/ambe/serial (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
* returns the Http status code (default 501: not implemented) * returns the Http status code (default 501: not implemented)
*/ */
virtual int instanceAMBESerialGet( virtual int instanceAMBESerialGet(
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) response; (void) response;
@ -809,7 +779,6 @@ public:
static QString instanceAudioInputCleanupURL; static QString instanceAudioInputCleanupURL;
static QString instanceAudioOutputCleanupURL; static QString instanceAudioOutputCleanupURL;
static QString instanceLocationURL; static QString instanceLocationURL;
static QString instanceDVSerialURL;
static QString instanceAMBESerialURL; static QString instanceAMBESerialURL;
static QString instanceAMBEDevicesURL; static QString instanceAMBEDevicesURL;
static QString instancePresetsURL; static QString instancePresetsURL;

View File

@ -30,7 +30,7 @@
#include "SWGInstanceChannelsResponse.h" #include "SWGInstanceChannelsResponse.h"
#include "SWGAudioDevices.h" #include "SWGAudioDevices.h"
#include "SWGLocationInformation.h" #include "SWGLocationInformation.h"
#include "SWGDVSeralDevices.h" #include "SWGDVSerialDevices.h"
#include "SWGAMBEDevices.h" #include "SWGAMBEDevices.h"
#include "SWGPresets.h" #include "SWGPresets.h"
#include "SWGPresetTransfer.h" #include "SWGPresetTransfer.h"
@ -114,8 +114,6 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
instanceAudioOutputCleanupService(request, response); instanceAudioOutputCleanupService(request, response);
} else if (path == WebAPIAdapterInterface::instanceLocationURL) { } else if (path == WebAPIAdapterInterface::instanceLocationURL) {
instanceLocationService(request, response); instanceLocationService(request, response);
} else if (path == WebAPIAdapterInterface::instanceDVSerialURL) {
instanceDVSerialService(request, response);
} else if (path == WebAPIAdapterInterface::instanceAMBESerialURL) { } else if (path == WebAPIAdapterInterface::instanceAMBESerialURL) {
instanceAMBESerialService(request, response); instanceAMBESerialService(request, response);
} else if (path == WebAPIAdapterInterface::instanceAMBEDevicesURL) { } else if (path == WebAPIAdapterInterface::instanceAMBEDevicesURL) {
@ -621,54 +619,6 @@ void WebAPIRequestMapper::instanceLocationService(qtwebapp::HttpRequest& request
} }
} }
void WebAPIRequestMapper::instanceDVSerialService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response)
{
SWGSDRangel::SWGErrorResponse errorResponse;
response.setHeader("Content-Type", "application/json");
response.setHeader("Access-Control-Allow-Origin", "*");
if (request.getMethod() == "GET")
{
SWGSDRangel::SWGDVSeralDevices normalResponse;
int status = m_adapter->instanceDVSerialGet(normalResponse, errorResponse);
response.setStatus(status);
if (status/100 == 2) {
response.write(normalResponse.asJson().toUtf8());
} else {
response.write(errorResponse.asJson().toUtf8());
}
}
else if (request.getMethod() == "PATCH")
{
QByteArray dvserialStr = request.getParameter("dvserial");
bool dvserial = false;
if (dvserialStr.length() != 0) {
dvserial = !(dvserialStr == "0");
}
SWGSDRangel::SWGDVSeralDevices normalResponse;
int status = m_adapter->instanceDVSerialPatch(dvserial, normalResponse, errorResponse);
response.setStatus(status);
if (status/100 == 2) {
response.write(normalResponse.asJson().toUtf8());
} else {
response.write(errorResponse.asJson().toUtf8());
}
}
else
{
response.setStatus(405,"Invalid HTTP method");
errorResponse.init();
*errorResponse.getMessage() = "Invalid HTTP method";
response.write(errorResponse.asJson().toUtf8());
}
}
void WebAPIRequestMapper::instanceAMBESerialService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response) void WebAPIRequestMapper::instanceAMBESerialService(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response)
{ {
SWGSDRangel::SWGErrorResponse errorResponse; SWGSDRangel::SWGErrorResponse errorResponse;
@ -677,7 +627,7 @@ void WebAPIRequestMapper::instanceAMBESerialService(qtwebapp::HttpRequest& reque
if (request.getMethod() == "GET") if (request.getMethod() == "GET")
{ {
SWGSDRangel::SWGDVSeralDevices normalResponse; SWGSDRangel::SWGDVSerialDevices normalResponse;
int status = m_adapter->instanceAMBESerialGet(normalResponse, errorResponse); int status = m_adapter->instanceAMBESerialGet(normalResponse, errorResponse);
response.setStatus(status); response.setStatus(status);

View File

@ -42,7 +42,7 @@
#include "SWGDeviceListItem.h" #include "SWGDeviceListItem.h"
#include "SWGAudioDevices.h" #include "SWGAudioDevices.h"
#include "SWGLocationInformation.h" #include "SWGLocationInformation.h"
#include "SWGDVSeralDevices.h" #include "SWGDVSerialDevices.h"
#include "SWGDVSerialDevice.h" #include "SWGDVSerialDevice.h"
#include "SWGAMBEDevices.h" #include "SWGAMBEDevices.h"
#include "SWGPresets.h" #include "SWGPresets.h"
@ -568,7 +568,7 @@ int WebAPIAdapterGUI::instanceLocationPut(
} }
int WebAPIAdapterGUI::instanceDVSerialGet( int WebAPIAdapterGUI::instanceDVSerialGet(
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) error; (void) error;
@ -594,7 +594,7 @@ int WebAPIAdapterGUI::instanceDVSerialGet(
int WebAPIAdapterGUI::instanceDVSerialPatch( int WebAPIAdapterGUI::instanceDVSerialPatch(
bool dvserial, bool dvserial,
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) error; (void) error;
@ -628,7 +628,7 @@ int WebAPIAdapterGUI::instanceDVSerialPatch(
} }
int WebAPIAdapterGUI::instanceAMBESerialGet( int WebAPIAdapterGUI::instanceAMBESerialGet(
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) error; (void) error;

View File

@ -99,16 +99,16 @@ public:
SWGSDRangel::SWGErrorResponse& error); SWGSDRangel::SWGErrorResponse& error);
virtual int instanceDVSerialGet( virtual int instanceDVSerialGet(
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error); SWGSDRangel::SWGErrorResponse& error);
virtual int instanceDVSerialPatch( virtual int instanceDVSerialPatch(
bool dvserial, bool dvserial,
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error); SWGSDRangel::SWGErrorResponse& error);
virtual int instanceAMBESerialGet( virtual int instanceAMBESerialGet(
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error); SWGSDRangel::SWGErrorResponse& error);
virtual int instanceAMBEDevicesGet( virtual int instanceAMBEDevicesGet(

View File

@ -28,7 +28,7 @@
#include "SWGLoggingInfo.h" #include "SWGLoggingInfo.h"
#include "SWGAudioDevices.h" #include "SWGAudioDevices.h"
#include "SWGLocationInformation.h" #include "SWGLocationInformation.h"
#include "SWGDVSeralDevices.h" #include "SWGDVSerialDevices.h"
#include "SWGAMBEDevices.h" #include "SWGAMBEDevices.h"
#include "SWGPresetImport.h" #include "SWGPresetImport.h"
#include "SWGPresetExport.h" #include "SWGPresetExport.h"
@ -553,7 +553,7 @@ int WebAPIAdapterSrv::instanceLocationPut(
} }
int WebAPIAdapterSrv::instanceDVSerialGet( int WebAPIAdapterSrv::instanceDVSerialGet(
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
response.init(); response.init();
@ -578,7 +578,7 @@ int WebAPIAdapterSrv::instanceDVSerialGet(
int WebAPIAdapterSrv::instanceDVSerialPatch( int WebAPIAdapterSrv::instanceDVSerialPatch(
bool dvserial, bool dvserial,
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
m_mainCore.m_dspEngine->setDVSerialSupport(dvserial); m_mainCore.m_dspEngine->setDVSerialSupport(dvserial);
@ -611,7 +611,7 @@ int WebAPIAdapterSrv::instanceDVSerialPatch(
} }
int WebAPIAdapterSrv::instanceAMBESerialGet( int WebAPIAdapterSrv::instanceAMBESerialGet(
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error) SWGSDRangel::SWGErrorResponse& error)
{ {
(void) error; (void) error;

View File

@ -99,16 +99,16 @@ public:
SWGSDRangel::SWGErrorResponse& error); SWGSDRangel::SWGErrorResponse& error);
virtual int instanceDVSerialGet( virtual int instanceDVSerialGet(
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error); SWGSDRangel::SWGErrorResponse& error);
virtual int instanceDVSerialPatch( virtual int instanceDVSerialPatch(
bool dvserial, bool dvserial,
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error); SWGSDRangel::SWGErrorResponse& error);
virtual int instanceAMBESerialGet( virtual int instanceAMBESerialGet(
SWGSDRangel::SWGDVSeralDevices& response, SWGSDRangel::SWGDVSerialDevices& response,
SWGSDRangel::SWGErrorResponse& error); SWGSDRangel::SWGErrorResponse& error);
virtual int instanceAMBEDevicesGet( virtual int instanceAMBEDevicesGet(

View File

@ -373,43 +373,6 @@ paths:
"501": "501":
$ref: "#/responses/Response_501" $ref: "#/responses/Response_501"
/sdrangel/dvserial:
x-swagger-router-controller: instance
get:
description: Get DV serial processing parameters for AMBE frames decoding in digital voice modes
operationId: instanceDVSerialGet
tags:
- Instance
responses:
"200":
description: On success return list of devices or empty list if unset
schema:
$ref: "#/definitions/DVSeralDevices"
"500":
$ref: "#/responses/Response_500"
"501":
$ref: "#/responses/Response_501"
patch:
description: Set or reset DV serial processing for AMBE frames decoding in digital voice modes
operationId: instanceDVSerialPatch
tags:
- Instance
parameters:
- name: dvserial
in: query
description: Set to non zero (true) to set DV serial processing
required: false
type: integer
responses:
"200":
description: On success return list of devices or empty list if unset
schema:
$ref: "#/definitions/DVSeralDevices"
"500":
$ref: "#/responses/Response_500"
"501":
$ref: "#/responses/Response_501"
/sdrangel/ambe/serial: /sdrangel/ambe/serial:
x-swagger-router-controller: instance x-swagger-router-controller: instance
get: get:
@ -421,7 +384,7 @@ paths:
"200": "200":
description: On success return list of device paths possibly empty description: On success return list of device paths possibly empty
schema: schema:
$ref: "#/definitions/DVSeralDevices" $ref: "#/definitions/DVSerialDevices"
"500": "500":
$ref: "#/responses/Response_500" $ref: "#/responses/Response_500"
"501": "501":
@ -1731,7 +1694,7 @@ definitions:
type: number type: number
format: float format: float
DVSeralDevices: DVSerialDevices:
description: "List of DV serial devices available in the system" description: "List of DV serial devices available in the system"
required: required:
- nbDevices - nbDevices

View File

@ -2102,7 +2102,16 @@ margin-bottom: 20px;
}, },
"description" : "DSDDemod" "description" : "DSDDemod"
}; };
defs.DVSeralDevices = { defs.DVSerialDevice = {
"properties" : {
"deviceName" : {
"type" : "string",
"description" : "Name of the serial device in the system"
}
},
"description" : "DV serial device details"
};
defs.DVSerialDevices = {
"required" : [ "nbDevices" ], "required" : [ "nbDevices" ],
"properties" : { "properties" : {
"nbDevices" : { "nbDevices" : {
@ -2118,15 +2127,6 @@ margin-bottom: 20px;
} }
}, },
"description" : "List of DV serial devices available in the system" "description" : "List of DV serial devices available in the system"
};
defs.DVSerialDevice = {
"properties" : {
"deviceName" : {
"type" : "string",
"description" : "Name of the serial device in the system"
}
},
"description" : "DV serial device details"
}; };
defs.DeviceListItem = { defs.DeviceListItem = {
"properties" : { "properties" : {
@ -6229,12 +6229,6 @@ margin-bottom: 20px;
<li data-group="Instance" data-name="instanceChannels" class=""> <li data-group="Instance" data-name="instanceChannels" class="">
<a href="#api-Instance-instanceChannels">instanceChannels</a> <a href="#api-Instance-instanceChannels">instanceChannels</a>
</li> </li>
<li data-group="Instance" data-name="instanceDVSerialGet" class="">
<a href="#api-Instance-instanceDVSerialGet">instanceDVSerialGet</a>
</li>
<li data-group="Instance" data-name="instanceDVSerialPatch" class="">
<a href="#api-Instance-instanceDVSerialPatch">instanceDVSerialPatch</a>
</li>
<li data-group="Instance" data-name="instanceDelete" class=""> <li data-group="Instance" data-name="instanceDelete" class="">
<a href="#api-Instance-instanceDelete">instanceDelete</a> <a href="#api-Instance-instanceDelete">instanceDelete</a>
</li> </li>
@ -16808,7 +16802,7 @@ public class InstanceApiExample {
InstanceApi apiInstance = new InstanceApi(); InstanceApi apiInstance = new InstanceApi();
try { try {
DVSeralDevices result = apiInstance.instanceAMBESerialGet(); DVSerialDevices result = apiInstance.instanceAMBESerialGet();
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceAMBESerialGet"); System.err.println("Exception when calling InstanceApi#instanceAMBESerialGet");
@ -16826,7 +16820,7 @@ public class InstanceApiExample {
public static void main(String[] args) { public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi(); InstanceApi apiInstance = new InstanceApi();
try { try {
DVSeralDevices result = apiInstance.instanceAMBESerialGet(); DVSerialDevices result = apiInstance.instanceAMBESerialGet();
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceAMBESerialGet"); System.err.println("Exception when calling InstanceApi#instanceAMBESerialGet");
@ -16844,7 +16838,7 @@ public class InstanceApiExample {
InstanceApi *apiInstance = [[InstanceApi alloc] init]; InstanceApi *apiInstance = [[InstanceApi alloc] init];
[apiInstance instanceAMBESerialGetWithCompletionHandler: [apiInstance instanceAMBESerialGetWithCompletionHandler:
^(DVSeralDevices output, NSError* error) { ^(DVSerialDevices output, NSError* error) {
if (output) { if (output) {
NSLog(@"%@", output); NSLog(@"%@", output);
} }
@ -16892,7 +16886,7 @@ namespace Example
try try
{ {
DVSeralDevices result = apiInstance.instanceAMBESerialGet(); DVSerialDevices result = apiInstance.instanceAMBESerialGet();
Debug.WriteLine(result); Debug.WriteLine(result);
} }
catch (Exception e) catch (Exception e)
@ -16979,7 +16973,7 @@ except ApiException as e:
var schemaWrapper = { var schemaWrapper = {
"description" : "On success return list of device paths possibly empty", "description" : "On success return list of device paths possibly empty",
"schema" : { "schema" : {
"$ref" : "#/definitions/DVSeralDevices" "$ref" : "#/definitions/DVSerialDevices"
} }
}; };
var schema = schemaWrapper.schema; var schema = schemaWrapper.schema;
@ -20192,714 +20186,6 @@ except ApiException as e:
</article> </article>
</div> </div>
<hr> <hr>
<div id="api-Instance-instanceDVSerialGet">
<article id="api-Instance-instanceDVSerialGet-0" data-group="User" data-name="instanceDVSerialGet" data-version="0">
<div class="pull-left">
<h1>instanceDVSerialGet</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Get DV serial processing parameters for AMBE frames decoding in digital voice modes</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/sdrangel/dvserial</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Instance-instanceDVSerialGet-0-curl">Curl</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-java">Java</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-csharp">C#</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-php">PHP</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-perl">Perl</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialGet-0-python">Python</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Instance-instanceDVSerialGet-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET "http://localhost/sdrangel/dvserial"</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-java">
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.*;
import SWGSDRangel.auth.*;
import SWGSDRangel.model.*;
import SWGSDRangel.api.InstanceApi;
import java.io.File;
import java.util.*;
public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
try {
DVSeralDevices result = apiInstance.instanceDVSerialGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceDVSerialGet");
e.printStackTrace();
}
}
}</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-android">
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.api.InstanceApi;
public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
try {
DVSeralDevices result = apiInstance.instanceDVSerialGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceDVSerialGet");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">
InstanceApi *apiInstance = [[InstanceApi alloc] init];
[apiInstance instanceDVSerialGetWithCompletionHandler:
^(DVSeralDevices output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-javascript">
<pre class="prettyprint"><code class="language-js">var SdRangel = require('sd_rangel');
var api = new SdRangel.InstanceApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceDVSerialGet(callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using SWGSDRangel.Api;
using SWGSDRangel.Client;
using SWGSDRangel.Model;
namespace Example
{
public class instanceDVSerialGetExample
{
public void main()
{
var apiInstance = new InstanceApi();
try
{
DVSeralDevices result = apiInstance.instanceDVSerialGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling InstanceApi.instanceDVSerialGet: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\InstanceApi();
try {
$result = $api_instance->instanceDVSerialGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InstanceApi->instanceDVSerialGet: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use SWGSDRangel::Configuration;
use SWGSDRangel::InstanceApi;
my $api_instance = SWGSDRangel::InstanceApi->new();
eval {
my $result = $api_instance->instanceDVSerialGet();
print Dumper($result);
};
if ($@) {
warn "Exception when calling InstanceApi->instanceDVSerialGet: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialGet-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_sdrangel
from swagger_sdrangel.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_sdrangel.InstanceApi()
try:
api_response = api_instance.instance_dv_serial_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling InstanceApi->instanceDVSerialGet: %s\n" % e)</code></pre>
</div>
</div>
<h2>Parameters</h2>
<h2>Responses</h2>
<h3> Status: 200 - On success return list of devices or empty list if unset </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialGet-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialGet-200-schema">
<div id='responses-instanceDVSerialGet-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "On success return list of devices or empty list if unset",
"schema" : {
"$ref" : "#/definitions/DVSeralDevices"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialGet-200-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialGet-200-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialGet-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 500 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialGet-500-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialGet-500-schema">
<div id='responses-instanceDVSerialGet-500-schema-500' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Error",
"schema" : {
"$ref" : "#/definitions/ErrorResponse"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialGet-500-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialGet-500-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialGet-500-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 501 - Function not implemented </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialGet-501-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialGet-501-schema">
<div id='responses-instanceDVSerialGet-501-schema-501' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Function not implemented",
"schema" : {
"$ref" : "#/definitions/ErrorResponse"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialGet-501-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialGet-501-schema-501');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialGet-501-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Instance-instanceDVSerialPatch">
<article id="api-Instance-instanceDVSerialPatch-0" data-group="User" data-name="instanceDVSerialPatch" data-version="0">
<div class="pull-left">
<h1>instanceDVSerialPatch</h1>
<p></p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
<p class="marked">Set or reset DV serial processing for AMBE frames decoding in digital voice modes</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="patch"><code><span class="pln">/sdrangel/dvserial</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
<li class="active"><a href="#examples-Instance-instanceDVSerialPatch-0-curl">Curl</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-java">Java</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-android">Android</a></li>
<!--<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-groovy">Groovy</a></li>-->
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-objc">Obj-C</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-javascript">JavaScript</a></li>
<!--<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-angular">Angular</a></li>-->
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-csharp">C#</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-php">PHP</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-perl">Perl</a></li>
<li class=""><a href="#examples-Instance-instanceDVSerialPatch-0-python">Python</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="examples-Instance-instanceDVSerialPatch-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PATCH "http://localhost/sdrangel/dvserial?dvserial="</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-java">
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.*;
import SWGSDRangel.auth.*;
import SWGSDRangel.model.*;
import SWGSDRangel.api.InstanceApi;
import java.io.File;
import java.util.*;
public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
Integer dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing
try {
DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceDVSerialPatch");
e.printStackTrace();
}
}
}</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-android">
<pre class="prettyprint"><code class="language-java">import SWGSDRangel.api.InstanceApi;
public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
Integer dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing
try {
DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InstanceApi#instanceDVSerialPatch");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-objc">
<pre class="prettyprint"><code class="language-cpp">Integer *dvserial = 56; // Set to non zero (true) to set DV serial processing (optional)
InstanceApi *apiInstance = [[InstanceApi alloc] init];
[apiInstance instanceDVSerialPatchWith:dvserial
completionHandler: ^(DVSeralDevices output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-javascript">
<pre class="prettyprint"><code class="language-js">var SdRangel = require('sd_rangel');
var api = new SdRangel.InstanceApi()
var opts = {
'dvserial': 56 // {Integer} Set to non zero (true) to set DV serial processing
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.instanceDVSerialPatch(opts, callback);
</code></pre>
</div>
<!--<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using SWGSDRangel.Api;
using SWGSDRangel.Client;
using SWGSDRangel.Model;
namespace Example
{
public class instanceDVSerialPatchExample
{
public void main()
{
var apiInstance = new InstanceApi();
var dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing (optional)
try
{
DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling InstanceApi.instanceDVSerialPatch: " + e.Message );
}
}
}
}
</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-php">
<pre class="prettyprint"><code class="language-php"><&#63;php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\InstanceApi();
$dvserial = 56; // Integer | Set to non zero (true) to set DV serial processing
try {
$result = $api_instance->instanceDVSerialPatch($dvserial);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling InstanceApi->instanceDVSerialPatch: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use SWGSDRangel::Configuration;
use SWGSDRangel::InstanceApi;
my $api_instance = SWGSDRangel::InstanceApi->new();
my $dvserial = 56; # Integer | Set to non zero (true) to set DV serial processing
eval {
my $result = $api_instance->instanceDVSerialPatch(dvserial => $dvserial);
print Dumper($result);
};
if ($@) {
warn "Exception when calling InstanceApi->instanceDVSerialPatch: $@\n";
}</code></pre>
</div>
<div class="tab-pane" id="examples-Instance-instanceDVSerialPatch-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import swagger_sdrangel
from swagger_sdrangel.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_sdrangel.InstanceApi()
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)
pprint(api_response)
except ApiException as e:
print("Exception when calling InstanceApi->instanceDVSerialPatch: %s\n" % e)</code></pre>
</div>
</div>
<h2>Parameters</h2>
<div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
<tr><td style="width:150px;">dvserial</td>
<td>
<div id="d2e199_instanceDVSerialPatch_dvserial">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
</span>
<div class="inner description">
Set to non zero (true) to set DV serial processing
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<h2>Responses</h2>
<h3> Status: 200 - On success return list of devices or empty list if unset </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialPatch-200-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialPatch-200-schema">
<div id='responses-instanceDVSerialPatch-200-schema-200' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "On success return list of devices or empty list if unset",
"schema" : {
"$ref" : "#/definitions/DVSeralDevices"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialPatch-200-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialPatch-200-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialPatch-200-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 500 - Error </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialPatch-500-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialPatch-500-schema">
<div id='responses-instanceDVSerialPatch-500-schema-500' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Error",
"schema" : {
"$ref" : "#/definitions/ErrorResponse"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialPatch-500-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialPatch-500-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialPatch-500-schema-data' type='hidden' value=''></input>
</div>
</div>
<h3> Status: 501 - Function not implemented </h3>
<ul class="nav nav-tabs nav-tabs-examples" >
<li class="active">
<a data-toggle="tab" href="#responses-instanceDVSerialPatch-501-schema">Schema</a>
</li>
</ul>
<div class="tab-content" style='margin-bottom: 10px;'>
<div class="tab-pane active" id="responses-instanceDVSerialPatch-501-schema">
<div id='responses-instanceDVSerialPatch-501-schema-501' style="padding: 30px; border-left: 1px solid #eee; border-right: 1px solid #eee; border-bottom: 1px solid #eee;">
<script>
$(document).ready(function() {
var schemaWrapper = {
"description" : "Function not implemented",
"schema" : {
"$ref" : "#/definitions/ErrorResponse"
}
};
var schema = schemaWrapper.schema;
if (schema.$ref != null) {
schema = defsParser.$refs.get(schema.$ref);
} else {
schemaWrapper.definitions = Object.assign({}, defs);
$RefParser.dereference(schemaWrapper).catch(function(err) {
console.log(err);
});
}
//console.log(JSON.stringify(schema));
var view = new JSONSchemaView(schema, 3);
$('#responses-instanceDVSerialPatch-501-schema-data').val(stringify(schema));
var result = $('#responses-instanceDVSerialPatch-501-schema-501');
result.empty();
result.append(view.render());
});
</script>
</div>
<input id='responses-instanceDVSerialPatch-501-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
<div id="api-Instance-instanceDelete"> <div id="api-Instance-instanceDelete">
<article id="api-Instance-instanceDelete-0" data-group="User" data-name="instanceDelete" data-version="0"> <article id="api-Instance-instanceDelete-0" data-group="User" data-name="instanceDelete" data-version="0">
<div class="pull-left"> <div class="pull-left">
@ -27046,7 +26332,7 @@ except ApiException as e:
</div> </div>
<div id="generator"> <div id="generator">
<div class="content"> <div class="content">
Generated 2019-07-20T20:43:22.760+02:00 Generated 2019-07-21T09:34:48.176+02:00
</div> </div>
</div> </div>
</div> </div>

View File

@ -11,7 +11,7 @@
*/ */
#include "SWGDVSeralDevices.h" #include "SWGDVSerialDevices.h"
#include "SWGHelpers.h" #include "SWGHelpers.h"
@ -22,24 +22,24 @@
namespace SWGSDRangel { namespace SWGSDRangel {
SWGDVSeralDevices::SWGDVSeralDevices(QString* json) { SWGDVSerialDevices::SWGDVSerialDevices(QString* json) {
init(); init();
this->fromJson(*json); this->fromJson(*json);
} }
SWGDVSeralDevices::SWGDVSeralDevices() { SWGDVSerialDevices::SWGDVSerialDevices() {
nb_devices = 0; nb_devices = 0;
m_nb_devices_isSet = false; m_nb_devices_isSet = false;
dv_serial_devices = nullptr; dv_serial_devices = nullptr;
m_dv_serial_devices_isSet = false; m_dv_serial_devices_isSet = false;
} }
SWGDVSeralDevices::~SWGDVSeralDevices() { SWGDVSerialDevices::~SWGDVSerialDevices() {
this->cleanup(); this->cleanup();
} }
void void
SWGDVSeralDevices::init() { SWGDVSerialDevices::init() {
nb_devices = 0; nb_devices = 0;
m_nb_devices_isSet = false; m_nb_devices_isSet = false;
dv_serial_devices = new QList<SWGDVSerialDevice*>(); dv_serial_devices = new QList<SWGDVSerialDevice*>();
@ -47,7 +47,7 @@ SWGDVSeralDevices::init() {
} }
void void
SWGDVSeralDevices::cleanup() { SWGDVSerialDevices::cleanup() {
if(dv_serial_devices != nullptr) { if(dv_serial_devices != nullptr) {
auto arr = dv_serial_devices; auto arr = dv_serial_devices;
@ -58,8 +58,8 @@ SWGDVSeralDevices::cleanup() {
} }
} }
SWGDVSeralDevices* SWGDVSerialDevices*
SWGDVSeralDevices::fromJson(QString &json) { SWGDVSerialDevices::fromJson(QString &json) {
QByteArray array (json.toStdString().c_str()); QByteArray array (json.toStdString().c_str());
QJsonDocument doc = QJsonDocument::fromJson(array); QJsonDocument doc = QJsonDocument::fromJson(array);
QJsonObject jsonObject = doc.object(); QJsonObject jsonObject = doc.object();
@ -68,7 +68,7 @@ SWGDVSeralDevices::fromJson(QString &json) {
} }
void void
SWGDVSeralDevices::fromJsonObject(QJsonObject &pJson) { SWGDVSerialDevices::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&nb_devices, pJson["nbDevices"], "qint32", ""); ::SWGSDRangel::setValue(&nb_devices, pJson["nbDevices"], "qint32", "");
@ -76,7 +76,7 @@ SWGDVSeralDevices::fromJsonObject(QJsonObject &pJson) {
} }
QString QString
SWGDVSeralDevices::asJson () SWGDVSerialDevices::asJson ()
{ {
QJsonObject* obj = this->asJsonObject(); QJsonObject* obj = this->asJsonObject();
@ -87,7 +87,7 @@ SWGDVSeralDevices::asJson ()
} }
QJsonObject* QJsonObject*
SWGDVSeralDevices::asJsonObject() { SWGDVSerialDevices::asJsonObject() {
QJsonObject* obj = new QJsonObject(); QJsonObject* obj = new QJsonObject();
if(m_nb_devices_isSet){ if(m_nb_devices_isSet){
obj->insert("nbDevices", QJsonValue(nb_devices)); obj->insert("nbDevices", QJsonValue(nb_devices));
@ -100,28 +100,28 @@ SWGDVSeralDevices::asJsonObject() {
} }
qint32 qint32
SWGDVSeralDevices::getNbDevices() { SWGDVSerialDevices::getNbDevices() {
return nb_devices; return nb_devices;
} }
void void
SWGDVSeralDevices::setNbDevices(qint32 nb_devices) { SWGDVSerialDevices::setNbDevices(qint32 nb_devices) {
this->nb_devices = nb_devices; this->nb_devices = nb_devices;
this->m_nb_devices_isSet = true; this->m_nb_devices_isSet = true;
} }
QList<SWGDVSerialDevice*>* QList<SWGDVSerialDevice*>*
SWGDVSeralDevices::getDvSerialDevices() { SWGDVSerialDevices::getDvSerialDevices() {
return dv_serial_devices; return dv_serial_devices;
} }
void void
SWGDVSeralDevices::setDvSerialDevices(QList<SWGDVSerialDevice*>* dv_serial_devices) { SWGDVSerialDevices::setDvSerialDevices(QList<SWGDVSerialDevice*>* dv_serial_devices) {
this->dv_serial_devices = dv_serial_devices; this->dv_serial_devices = dv_serial_devices;
this->m_dv_serial_devices_isSet = true; this->m_dv_serial_devices_isSet = true;
} }
bool bool
SWGDVSeralDevices::isSet(){ SWGDVSerialDevices::isSet(){
bool isObjectUpdated = false; bool isObjectUpdated = false;
do{ do{
if(m_nb_devices_isSet){ isObjectUpdated = true; break;} if(m_nb_devices_isSet){ isObjectUpdated = true; break;}

View File

@ -11,13 +11,13 @@
*/ */
/* /*
* SWGDVSeralDevices.h * SWGDVSerialDevices.h
* *
* List of DV serial devices available in the system * List of DV serial devices available in the system
*/ */
#ifndef SWGDVSeralDevices_H_ #ifndef SWGDVSerialDevices_H_
#define SWGDVSeralDevices_H_ #define SWGDVSerialDevices_H_
#include <QJsonObject> #include <QJsonObject>
@ -30,18 +30,18 @@
namespace SWGSDRangel { namespace SWGSDRangel {
class SWG_API SWGDVSeralDevices: public SWGObject { class SWG_API SWGDVSerialDevices: public SWGObject {
public: public:
SWGDVSeralDevices(); SWGDVSerialDevices();
SWGDVSeralDevices(QString* json); SWGDVSerialDevices(QString* json);
virtual ~SWGDVSeralDevices(); virtual ~SWGDVSerialDevices();
void init(); void init();
void cleanup(); void cleanup();
virtual QString asJson () override; virtual QString asJson () override;
virtual QJsonObject* asJsonObject() override; virtual QJsonObject* asJsonObject() override;
virtual void fromJsonObject(QJsonObject &json) override; virtual void fromJsonObject(QJsonObject &json) override;
virtual SWGDVSeralDevices* fromJson(QString &jsonString) override; virtual SWGDVSerialDevices* fromJson(QString &jsonString) override;
qint32 getNbDevices(); qint32 getNbDevices();
void setNbDevices(qint32 nb_devices); void setNbDevices(qint32 nb_devices);
@ -63,4 +63,4 @@ private:
} }
#endif /* SWGDVSeralDevices_H_ */ #endif /* SWGDVSerialDevices_H_ */

View File

@ -283,7 +283,7 @@ SWGInstanceApi::instanceAMBESerialGetCallback(SWGHttpRequestWorker * worker) {
QString json(worker->response); QString json(worker->response);
SWGDVSeralDevices* output = static_cast<SWGDVSeralDevices*>(create(json, QString("SWGDVSeralDevices"))); SWGDVSerialDevices* output = static_cast<SWGDVSerialDevices*>(create(json, QString("SWGDVSerialDevices")));
worker->deleteLater(); worker->deleteLater();
if (worker->error_type == QNetworkReply::NoError) { if (worker->error_type == QNetworkReply::NoError) {
@ -730,118 +730,6 @@ SWGInstanceApi::instanceChannelsCallback(SWGHttpRequestWorker * worker) {
} }
} }
void
SWGInstanceApi::instanceDVSerialGet() {
QString fullPath;
fullPath.append(this->host).append(this->basePath).append("/sdrangel/dvserial");
SWGHttpRequestWorker *worker = new SWGHttpRequestWorker();
SWGHttpRequestInput input(fullPath, "GET");
foreach(QString key, this->defaultHeaders.keys()) {
input.headers.insert(key, this->defaultHeaders.value(key));
}
connect(worker,
&SWGHttpRequestWorker::on_execution_finished,
this,
&SWGInstanceApi::instanceDVSerialGetCallback);
worker->execute(&input);
}
void
SWGInstanceApi::instanceDVSerialGetCallback(SWGHttpRequestWorker * worker) {
QString msg;
QString error_str = worker->error_str;
QNetworkReply::NetworkError error_type = worker->error_type;
if (worker->error_type == QNetworkReply::NoError) {
msg = QString("Success! %1 bytes").arg(worker->response.length());
}
else {
msg = "Error: " + worker->error_str;
}
QString json(worker->response);
SWGDVSeralDevices* output = static_cast<SWGDVSeralDevices*>(create(json, QString("SWGDVSeralDevices")));
worker->deleteLater();
if (worker->error_type == QNetworkReply::NoError) {
emit instanceDVSerialGetSignal(output);
} else {
emit instanceDVSerialGetSignalE(output, error_type, error_str);
emit instanceDVSerialGetSignalEFull(worker, error_type, error_str);
}
}
void
SWGInstanceApi::instanceDVSerialPatch(qint32 dvserial) {
QString fullPath;
fullPath.append(this->host).append(this->basePath).append("/sdrangel/dvserial");
if (fullPath.indexOf("?") > 0)
fullPath.append("&");
else
fullPath.append("?");
fullPath.append(QUrl::toPercentEncoding("dvserial"))
.append("=")
.append(QUrl::toPercentEncoding(stringValue(dvserial)));
SWGHttpRequestWorker *worker = new SWGHttpRequestWorker();
SWGHttpRequestInput input(fullPath, "PATCH");
foreach(QString key, this->defaultHeaders.keys()) {
input.headers.insert(key, this->defaultHeaders.value(key));
}
connect(worker,
&SWGHttpRequestWorker::on_execution_finished,
this,
&SWGInstanceApi::instanceDVSerialPatchCallback);
worker->execute(&input);
}
void
SWGInstanceApi::instanceDVSerialPatchCallback(SWGHttpRequestWorker * worker) {
QString msg;
QString error_str = worker->error_str;
QNetworkReply::NetworkError error_type = worker->error_type;
if (worker->error_type == QNetworkReply::NoError) {
msg = QString("Success! %1 bytes").arg(worker->response.length());
}
else {
msg = "Error: " + worker->error_str;
}
QString json(worker->response);
SWGDVSeralDevices* output = static_cast<SWGDVSeralDevices*>(create(json, QString("SWGDVSeralDevices")));
worker->deleteLater();
if (worker->error_type == QNetworkReply::NoError) {
emit instanceDVSerialPatchSignal(output);
} else {
emit instanceDVSerialPatchSignalE(output, error_type, error_str);
emit instanceDVSerialPatchSignalEFull(worker, error_type, error_str);
}
}
void void
SWGInstanceApi::instanceDelete() { SWGInstanceApi::instanceDelete() {
QString fullPath; QString fullPath;

View File

@ -19,7 +19,7 @@
#include "SWGAudioDevices.h" #include "SWGAudioDevices.h"
#include "SWGAudioInputDevice.h" #include "SWGAudioInputDevice.h"
#include "SWGAudioOutputDevice.h" #include "SWGAudioOutputDevice.h"
#include "SWGDVSeralDevices.h" #include "SWGDVSerialDevices.h"
#include "SWGDeviceSetList.h" #include "SWGDeviceSetList.h"
#include "SWGErrorResponse.h" #include "SWGErrorResponse.h"
#include "SWGInstanceChannelsResponse.h" #include "SWGInstanceChannelsResponse.h"
@ -63,8 +63,6 @@ public:
void instanceAudioOutputDelete(SWGAudioOutputDevice& body); void instanceAudioOutputDelete(SWGAudioOutputDevice& body);
void instanceAudioOutputPatch(SWGAudioOutputDevice& body); void instanceAudioOutputPatch(SWGAudioOutputDevice& body);
void instanceChannels(qint32 direction); void instanceChannels(qint32 direction);
void instanceDVSerialGet();
void instanceDVSerialPatch(qint32 dvserial);
void instanceDelete(); void instanceDelete();
void instanceDeviceSetsGet(); void instanceDeviceSetsGet();
void instanceDevices(qint32 direction); void instanceDevices(qint32 direction);
@ -95,8 +93,6 @@ private:
void instanceAudioOutputDeleteCallback (SWGHttpRequestWorker * worker); void instanceAudioOutputDeleteCallback (SWGHttpRequestWorker * worker);
void instanceAudioOutputPatchCallback (SWGHttpRequestWorker * worker); void instanceAudioOutputPatchCallback (SWGHttpRequestWorker * worker);
void instanceChannelsCallback (SWGHttpRequestWorker * worker); void instanceChannelsCallback (SWGHttpRequestWorker * worker);
void instanceDVSerialGetCallback (SWGHttpRequestWorker * worker);
void instanceDVSerialPatchCallback (SWGHttpRequestWorker * worker);
void instanceDeleteCallback (SWGHttpRequestWorker * worker); void instanceDeleteCallback (SWGHttpRequestWorker * worker);
void instanceDeviceSetsGetCallback (SWGHttpRequestWorker * worker); void instanceDeviceSetsGetCallback (SWGHttpRequestWorker * worker);
void instanceDevicesCallback (SWGHttpRequestWorker * worker); void instanceDevicesCallback (SWGHttpRequestWorker * worker);
@ -118,7 +114,7 @@ signals:
void instanceAMBEDevicesGetSignal(SWGAMBEDevices* summary); void instanceAMBEDevicesGetSignal(SWGAMBEDevices* summary);
void instanceAMBEDevicesPatchSignal(SWGAMBEDevices* summary); void instanceAMBEDevicesPatchSignal(SWGAMBEDevices* summary);
void instanceAMBEDevicesPutSignal(SWGAMBEDevices* summary); void instanceAMBEDevicesPutSignal(SWGAMBEDevices* summary);
void instanceAMBESerialGetSignal(SWGDVSeralDevices* summary); void instanceAMBESerialGetSignal(SWGDVSerialDevices* summary);
void instanceAudioGetSignal(SWGAudioDevices* summary); void instanceAudioGetSignal(SWGAudioDevices* summary);
void instanceAudioInputCleanupPatchSignal(SWGSuccessResponse* summary); void instanceAudioInputCleanupPatchSignal(SWGSuccessResponse* summary);
void instanceAudioInputDeleteSignal(SWGAudioInputDevice* summary); void instanceAudioInputDeleteSignal(SWGAudioInputDevice* summary);
@ -127,8 +123,6 @@ signals:
void instanceAudioOutputDeleteSignal(SWGAudioOutputDevice* summary); void instanceAudioOutputDeleteSignal(SWGAudioOutputDevice* summary);
void instanceAudioOutputPatchSignal(SWGAudioOutputDevice* summary); void instanceAudioOutputPatchSignal(SWGAudioOutputDevice* summary);
void instanceChannelsSignal(SWGInstanceChannelsResponse* summary); void instanceChannelsSignal(SWGInstanceChannelsResponse* summary);
void instanceDVSerialGetSignal(SWGDVSeralDevices* summary);
void instanceDVSerialPatchSignal(SWGDVSeralDevices* summary);
void instanceDeleteSignal(SWGInstanceSummaryResponse* summary); void instanceDeleteSignal(SWGInstanceSummaryResponse* summary);
void instanceDeviceSetsGetSignal(SWGDeviceSetList* summary); void instanceDeviceSetsGetSignal(SWGDeviceSetList* summary);
void instanceDevicesSignal(SWGInstanceDevicesResponse* summary); void instanceDevicesSignal(SWGInstanceDevicesResponse* summary);
@ -149,7 +143,7 @@ signals:
void instanceAMBEDevicesGetSignalE(SWGAMBEDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAMBEDevicesGetSignalE(SWGAMBEDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceAMBEDevicesPatchSignalE(SWGAMBEDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAMBEDevicesPatchSignalE(SWGAMBEDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceAMBEDevicesPutSignalE(SWGAMBEDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAMBEDevicesPutSignalE(SWGAMBEDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceAMBESerialGetSignalE(SWGDVSeralDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAMBESerialGetSignalE(SWGDVSerialDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceAudioGetSignalE(SWGAudioDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioGetSignalE(SWGAudioDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceAudioInputCleanupPatchSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioInputCleanupPatchSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceAudioInputDeleteSignalE(SWGAudioInputDevice* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioInputDeleteSignalE(SWGAudioInputDevice* summary, QNetworkReply::NetworkError error_type, QString& error_str);
@ -158,8 +152,6 @@ signals:
void instanceAudioOutputDeleteSignalE(SWGAudioOutputDevice* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioOutputDeleteSignalE(SWGAudioOutputDevice* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceAudioOutputPatchSignalE(SWGAudioOutputDevice* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioOutputPatchSignalE(SWGAudioOutputDevice* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceChannelsSignalE(SWGInstanceChannelsResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceChannelsSignalE(SWGInstanceChannelsResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceDVSerialGetSignalE(SWGDVSeralDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceDVSerialPatchSignalE(SWGDVSeralDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceDeleteSignalE(SWGInstanceSummaryResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceDeleteSignalE(SWGInstanceSummaryResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceDeviceSetsGetSignalE(SWGDeviceSetList* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceDeviceSetsGetSignalE(SWGDeviceSetList* summary, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceDevicesSignalE(SWGInstanceDevicesResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceDevicesSignalE(SWGInstanceDevicesResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str);
@ -189,8 +181,6 @@ signals:
void instanceAudioOutputDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioOutputDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceAudioOutputPatchSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioOutputPatchSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceChannelsSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceChannelsSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceDVSerialGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceDVSerialPatchSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceDeviceSetsGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceDeviceSetsGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);
void instanceDevicesSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceDevicesSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str);

View File

@ -49,8 +49,8 @@
#include "SWGComplex.h" #include "SWGComplex.h"
#include "SWGDSDDemodReport.h" #include "SWGDSDDemodReport.h"
#include "SWGDSDDemodSettings.h" #include "SWGDSDDemodSettings.h"
#include "SWGDVSeralDevices.h"
#include "SWGDVSerialDevice.h" #include "SWGDVSerialDevice.h"
#include "SWGDVSerialDevices.h"
#include "SWGDeviceListItem.h" #include "SWGDeviceListItem.h"
#include "SWGDeviceReport.h" #include "SWGDeviceReport.h"
#include "SWGDeviceSet.h" #include "SWGDeviceSet.h"
@ -262,12 +262,12 @@ namespace SWGSDRangel {
if(QString("SWGDSDDemodSettings").compare(type) == 0) { if(QString("SWGDSDDemodSettings").compare(type) == 0) {
return new SWGDSDDemodSettings(); return new SWGDSDDemodSettings();
} }
if(QString("SWGDVSeralDevices").compare(type) == 0) {
return new SWGDVSeralDevices();
}
if(QString("SWGDVSerialDevice").compare(type) == 0) { if(QString("SWGDVSerialDevice").compare(type) == 0) {
return new SWGDVSerialDevice(); return new SWGDVSerialDevice();
} }
if(QString("SWGDVSerialDevices").compare(type) == 0) {
return new SWGDVSerialDevices();
}
if(QString("SWGDeviceListItem").compare(type) == 0) { if(QString("SWGDeviceListItem").compare(type) == 0) {
return new SWGDeviceListItem(); return new SWGDeviceListItem();
} }