Generate swagger files

This commit is contained in:
srcejon 2024-02-27 14:07:53 +00:00
parent 32c663c983
commit 8ad555972e
5 changed files with 44 additions and 2 deletions

View File

@ -13104,6 +13104,10 @@ margin-bottom: 20px;
"preFill" : {
"type" : "integer"
},
"protocol" : {
"type" : "string",
"description" : "(SDRangel or Spy Server)"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -58668,7 +58672,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2024-02-12T10:33:45.606+01:00
Generated 2024-02-27T15:07:08.970+01:00
</div>
</div>
</div>

View File

@ -43,6 +43,9 @@ RemoteTCPInputSettings:
type: integer
preFill:
type: integer
protocol:
description: (SDRangel or Spy Server)
type: string
useReverseAPI:
description: Synchronize with reverse API (1 for yes, 0 for no)
type: integer

View File

@ -13104,6 +13104,10 @@ margin-bottom: 20px;
"preFill" : {
"type" : "integer"
},
"protocol" : {
"type" : "string",
"description" : "(SDRangel or Spy Server)"
},
"useReverseAPI" : {
"type" : "integer",
"description" : "Synchronize with reverse API (1 for yes, 0 for no)"
@ -58668,7 +58672,7 @@ except ApiException as e:
</div>
<div id="generator">
<div class="content">
Generated 2024-02-12T10:33:45.606+01:00
Generated 2024-02-27T15:07:08.970+01:00
</div>
</div>
</div>

View File

@ -68,6 +68,8 @@ SWGRemoteTCPInputSettings::SWGRemoteTCPInputSettings() {
m_override_remote_settings_isSet = false;
pre_fill = 0;
m_pre_fill_isSet = false;
protocol = nullptr;
m_protocol_isSet = false;
use_reverse_api = 0;
m_use_reverse_api_isSet = false;
reverse_api_address = nullptr;
@ -124,6 +126,8 @@ SWGRemoteTCPInputSettings::init() {
m_override_remote_settings_isSet = false;
pre_fill = 0;
m_pre_fill_isSet = false;
protocol = new QString("");
m_protocol_isSet = false;
use_reverse_api = 0;
m_use_reverse_api_isSet = false;
reverse_api_address = new QString("");
@ -158,6 +162,9 @@ SWGRemoteTCPInputSettings::cleanup() {
if(protocol != nullptr) {
delete protocol;
}
if(reverse_api_address != nullptr) {
delete reverse_api_address;
@ -217,6 +224,8 @@ SWGRemoteTCPInputSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&pre_fill, pJson["preFill"], "qint32", "");
::SWGSDRangel::setValue(&protocol, pJson["protocol"], "QString", "QString");
::SWGSDRangel::setValue(&use_reverse_api, pJson["useReverseAPI"], "qint32", "");
::SWGSDRangel::setValue(&reverse_api_address, pJson["reverseAPIAddress"], "QString", "QString");
@ -301,6 +310,9 @@ SWGRemoteTCPInputSettings::asJsonObject() {
if(m_pre_fill_isSet){
obj->insert("preFill", QJsonValue(pre_fill));
}
if(protocol != nullptr && *protocol != QString("")){
toJsonValue(QString("protocol"), protocol, obj, QString("QString"));
}
if(m_use_reverse_api_isSet){
obj->insert("useReverseAPI", QJsonValue(use_reverse_api));
}
@ -517,6 +529,16 @@ SWGRemoteTCPInputSettings::setPreFill(qint32 pre_fill) {
this->m_pre_fill_isSet = true;
}
QString*
SWGRemoteTCPInputSettings::getProtocol() {
return protocol;
}
void
SWGRemoteTCPInputSettings::setProtocol(QString* protocol) {
this->protocol = protocol;
this->m_protocol_isSet = true;
}
qint32
SWGRemoteTCPInputSettings::getUseReverseApi() {
return use_reverse_api;
@ -622,6 +644,9 @@ SWGRemoteTCPInputSettings::isSet(){
if(m_pre_fill_isSet){
isObjectUpdated = true; break;
}
if(protocol && *protocol != QString("")){
isObjectUpdated = true; break;
}
if(m_use_reverse_api_isSet){
isObjectUpdated = true; break;
}

View File

@ -102,6 +102,9 @@ public:
qint32 getPreFill();
void setPreFill(qint32 pre_fill);
QString* getProtocol();
void setProtocol(QString* protocol);
qint32 getUseReverseApi();
void setUseReverseApi(qint32 use_reverse_api);
@ -178,6 +181,9 @@ private:
qint32 pre_fill;
bool m_pre_fill_isSet;
QString* protocol;
bool m_protocol_isSet;
qint32 use_reverse_api;
bool m_use_reverse_api_isSet;