1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-27 15:26:33 -04:00

Regenerate swagger

This commit is contained in:
Jon Beniston 2023-09-01 18:51:31 +01:00
parent 48300d3d00
commit 7da8458ee9
3 changed files with 215 additions and 22 deletions

View File

@ -11836,8 +11836,9 @@ margin-bottom: 20px;
"type" : "integer", "type" : "integer",
"description" : "Boolean\n * 0 - off\n * 1 - on\n" "description" : "Boolean\n * 0 - off\n * 1 - on\n"
}, },
"data" : { "text" : {
"type" : "string" "type" : "string",
"description" : "Text to transmit"
}, },
"pulseShaping" : { "pulseShaping" : {
"type" : "integer", "type" : "integer",
@ -11850,6 +11851,24 @@ margin-bottom: 20px;
"symbolSpan" : { "symbolSpan" : {
"type" : "integer" "type" : "integer"
}, },
"characterSet" : {
"type" : "integer"
},
"unshiftOnSpace" : {
"type" : "integer"
},
"msbFirst" : {
"type" : "integer"
},
"spaceHigh" : {
"type" : "integer"
},
"prefixCRLF" : {
"type" : "integer"
},
"postfixCRLF" : {
"type" : "integer"
},
"udpEnabled" : { "udpEnabled" : {
"type" : "integer", "type" : "integer",
"description" : "Whether to receive text to transmit on specified UDP port" "description" : "Whether to receive text to transmit on specified UDP port"
@ -57979,7 +57998,7 @@ except ApiException as e:
</div> </div>
<div id="generator"> <div id="generator">
<div class="content"> <div class="content">
Generated 2023-09-01T18:13:33.975+02:00 Generated 2023-09-01T19:50:57.465+02:00
</div> </div>
</div> </div>
</div> </div>

View File

@ -50,14 +50,26 @@ SWGRTTYModSettings::SWGRTTYModSettings() {
m_bb_noise_isSet = false; m_bb_noise_isSet = false;
rf_noise = 0; rf_noise = 0;
m_rf_noise_isSet = false; m_rf_noise_isSet = false;
data = nullptr; text = nullptr;
m_data_isSet = false; m_text_isSet = false;
pulse_shaping = 0; pulse_shaping = 0;
m_pulse_shaping_isSet = false; m_pulse_shaping_isSet = false;
beta = 0.0f; beta = 0.0f;
m_beta_isSet = false; m_beta_isSet = false;
symbol_span = 0; symbol_span = 0;
m_symbol_span_isSet = false; m_symbol_span_isSet = false;
character_set = 0;
m_character_set_isSet = false;
unshift_on_space = 0;
m_unshift_on_space_isSet = false;
msb_first = 0;
m_msb_first_isSet = false;
space_high = 0;
m_space_high_isSet = false;
prefix_crlf = 0;
m_prefix_crlf_isSet = false;
postfix_crlf = 0;
m_postfix_crlf_isSet = false;
udp_enabled = 0; udp_enabled = 0;
m_udp_enabled_isSet = false; m_udp_enabled_isSet = false;
udp_address = nullptr; udp_address = nullptr;
@ -114,14 +126,26 @@ SWGRTTYModSettings::init() {
m_bb_noise_isSet = false; m_bb_noise_isSet = false;
rf_noise = 0; rf_noise = 0;
m_rf_noise_isSet = false; m_rf_noise_isSet = false;
data = new QString(""); text = new QString("");
m_data_isSet = false; m_text_isSet = false;
pulse_shaping = 0; pulse_shaping = 0;
m_pulse_shaping_isSet = false; m_pulse_shaping_isSet = false;
beta = 0.0f; beta = 0.0f;
m_beta_isSet = false; m_beta_isSet = false;
symbol_span = 0; symbol_span = 0;
m_symbol_span_isSet = false; m_symbol_span_isSet = false;
character_set = 0;
m_character_set_isSet = false;
unshift_on_space = 0;
m_unshift_on_space_isSet = false;
msb_first = 0;
m_msb_first_isSet = false;
space_high = 0;
m_space_high_isSet = false;
prefix_crlf = 0;
m_prefix_crlf_isSet = false;
postfix_crlf = 0;
m_postfix_crlf_isSet = false;
udp_enabled = 0; udp_enabled = 0;
m_udp_enabled_isSet = false; m_udp_enabled_isSet = false;
udp_address = new QString(""); udp_address = new QString("");
@ -163,13 +187,19 @@ SWGRTTYModSettings::cleanup() {
if(data != nullptr) { if(text != nullptr) {
delete data; delete text;
} }
if(udp_address != nullptr) { if(udp_address != nullptr) {
delete udp_address; delete udp_address;
} }
@ -227,7 +257,7 @@ SWGRTTYModSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&rf_noise, pJson["rfNoise"], "qint32", ""); ::SWGSDRangel::setValue(&rf_noise, pJson["rfNoise"], "qint32", "");
::SWGSDRangel::setValue(&data, pJson["data"], "QString", "QString"); ::SWGSDRangel::setValue(&text, pJson["text"], "QString", "QString");
::SWGSDRangel::setValue(&pulse_shaping, pJson["pulseShaping"], "qint32", ""); ::SWGSDRangel::setValue(&pulse_shaping, pJson["pulseShaping"], "qint32", "");
@ -235,6 +265,18 @@ SWGRTTYModSettings::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&symbol_span, pJson["symbolSpan"], "qint32", ""); ::SWGSDRangel::setValue(&symbol_span, pJson["symbolSpan"], "qint32", "");
::SWGSDRangel::setValue(&character_set, pJson["characterSet"], "qint32", "");
::SWGSDRangel::setValue(&unshift_on_space, pJson["unshiftOnSpace"], "qint32", "");
::SWGSDRangel::setValue(&msb_first, pJson["msbFirst"], "qint32", "");
::SWGSDRangel::setValue(&space_high, pJson["spaceHigh"], "qint32", "");
::SWGSDRangel::setValue(&prefix_crlf, pJson["prefixCRLF"], "qint32", "");
::SWGSDRangel::setValue(&postfix_crlf, pJson["postfixCRLF"], "qint32", "");
::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", ""); ::SWGSDRangel::setValue(&udp_enabled, pJson["udpEnabled"], "qint32", "");
::SWGSDRangel::setValue(&udp_address, pJson["udpAddress"], "QString", "QString"); ::SWGSDRangel::setValue(&udp_address, pJson["udpAddress"], "QString", "QString");
@ -310,8 +352,8 @@ SWGRTTYModSettings::asJsonObject() {
if(m_rf_noise_isSet){ if(m_rf_noise_isSet){
obj->insert("rfNoise", QJsonValue(rf_noise)); obj->insert("rfNoise", QJsonValue(rf_noise));
} }
if(data != nullptr && *data != QString("")){ if(text != nullptr && *text != QString("")){
toJsonValue(QString("data"), data, obj, QString("QString")); toJsonValue(QString("text"), text, obj, QString("QString"));
} }
if(m_pulse_shaping_isSet){ if(m_pulse_shaping_isSet){
obj->insert("pulseShaping", QJsonValue(pulse_shaping)); obj->insert("pulseShaping", QJsonValue(pulse_shaping));
@ -322,6 +364,24 @@ SWGRTTYModSettings::asJsonObject() {
if(m_symbol_span_isSet){ if(m_symbol_span_isSet){
obj->insert("symbolSpan", QJsonValue(symbol_span)); obj->insert("symbolSpan", QJsonValue(symbol_span));
} }
if(m_character_set_isSet){
obj->insert("characterSet", QJsonValue(character_set));
}
if(m_unshift_on_space_isSet){
obj->insert("unshiftOnSpace", QJsonValue(unshift_on_space));
}
if(m_msb_first_isSet){
obj->insert("msbFirst", QJsonValue(msb_first));
}
if(m_space_high_isSet){
obj->insert("spaceHigh", QJsonValue(space_high));
}
if(m_prefix_crlf_isSet){
obj->insert("prefixCRLF", QJsonValue(prefix_crlf));
}
if(m_postfix_crlf_isSet){
obj->insert("postfixCRLF", QJsonValue(postfix_crlf));
}
if(m_udp_enabled_isSet){ if(m_udp_enabled_isSet){
obj->insert("udpEnabled", QJsonValue(udp_enabled)); obj->insert("udpEnabled", QJsonValue(udp_enabled));
} }
@ -476,13 +536,13 @@ SWGRTTYModSettings::setRfNoise(qint32 rf_noise) {
} }
QString* QString*
SWGRTTYModSettings::getData() { SWGRTTYModSettings::getText() {
return data; return text;
} }
void void
SWGRTTYModSettings::setData(QString* data) { SWGRTTYModSettings::setText(QString* text) {
this->data = data; this->text = text;
this->m_data_isSet = true; this->m_text_isSet = true;
} }
qint32 qint32
@ -515,6 +575,66 @@ SWGRTTYModSettings::setSymbolSpan(qint32 symbol_span) {
this->m_symbol_span_isSet = true; this->m_symbol_span_isSet = true;
} }
qint32
SWGRTTYModSettings::getCharacterSet() {
return character_set;
}
void
SWGRTTYModSettings::setCharacterSet(qint32 character_set) {
this->character_set = character_set;
this->m_character_set_isSet = true;
}
qint32
SWGRTTYModSettings::getUnshiftOnSpace() {
return unshift_on_space;
}
void
SWGRTTYModSettings::setUnshiftOnSpace(qint32 unshift_on_space) {
this->unshift_on_space = unshift_on_space;
this->m_unshift_on_space_isSet = true;
}
qint32
SWGRTTYModSettings::getMsbFirst() {
return msb_first;
}
void
SWGRTTYModSettings::setMsbFirst(qint32 msb_first) {
this->msb_first = msb_first;
this->m_msb_first_isSet = true;
}
qint32
SWGRTTYModSettings::getSpaceHigh() {
return space_high;
}
void
SWGRTTYModSettings::setSpaceHigh(qint32 space_high) {
this->space_high = space_high;
this->m_space_high_isSet = true;
}
qint32
SWGRTTYModSettings::getPrefixCrlf() {
return prefix_crlf;
}
void
SWGRTTYModSettings::setPrefixCrlf(qint32 prefix_crlf) {
this->prefix_crlf = prefix_crlf;
this->m_prefix_crlf_isSet = true;
}
qint32
SWGRTTYModSettings::getPostfixCrlf() {
return postfix_crlf;
}
void
SWGRTTYModSettings::setPostfixCrlf(qint32 postfix_crlf) {
this->postfix_crlf = postfix_crlf;
this->m_postfix_crlf_isSet = true;
}
qint32 qint32
SWGRTTYModSettings::getUdpEnabled() { SWGRTTYModSettings::getUdpEnabled() {
return udp_enabled; return udp_enabled;
@ -683,7 +803,7 @@ SWGRTTYModSettings::isSet(){
if(m_rf_noise_isSet){ if(m_rf_noise_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(data && *data != QString("")){ if(text && *text != QString("")){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(m_pulse_shaping_isSet){ if(m_pulse_shaping_isSet){
@ -695,6 +815,24 @@ SWGRTTYModSettings::isSet(){
if(m_symbol_span_isSet){ if(m_symbol_span_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }
if(m_character_set_isSet){
isObjectUpdated = true; break;
}
if(m_unshift_on_space_isSet){
isObjectUpdated = true; break;
}
if(m_msb_first_isSet){
isObjectUpdated = true; break;
}
if(m_space_high_isSet){
isObjectUpdated = true; break;
}
if(m_prefix_crlf_isSet){
isObjectUpdated = true; break;
}
if(m_postfix_crlf_isSet){
isObjectUpdated = true; break;
}
if(m_udp_enabled_isSet){ if(m_udp_enabled_isSet){
isObjectUpdated = true; break; isObjectUpdated = true; break;
} }

View File

@ -77,8 +77,8 @@ public:
qint32 getRfNoise(); qint32 getRfNoise();
void setRfNoise(qint32 rf_noise); void setRfNoise(qint32 rf_noise);
QString* getData(); QString* getText();
void setData(QString* data); void setText(QString* text);
qint32 getPulseShaping(); qint32 getPulseShaping();
void setPulseShaping(qint32 pulse_shaping); void setPulseShaping(qint32 pulse_shaping);
@ -89,6 +89,24 @@ public:
qint32 getSymbolSpan(); qint32 getSymbolSpan();
void setSymbolSpan(qint32 symbol_span); void setSymbolSpan(qint32 symbol_span);
qint32 getCharacterSet();
void setCharacterSet(qint32 character_set);
qint32 getUnshiftOnSpace();
void setUnshiftOnSpace(qint32 unshift_on_space);
qint32 getMsbFirst();
void setMsbFirst(qint32 msb_first);
qint32 getSpaceHigh();
void setSpaceHigh(qint32 space_high);
qint32 getPrefixCrlf();
void setPrefixCrlf(qint32 prefix_crlf);
qint32 getPostfixCrlf();
void setPostfixCrlf(qint32 postfix_crlf);
qint32 getUdpEnabled(); qint32 getUdpEnabled();
void setUdpEnabled(qint32 udp_enabled); void setUdpEnabled(qint32 udp_enabled);
@ -165,8 +183,8 @@ private:
qint32 rf_noise; qint32 rf_noise;
bool m_rf_noise_isSet; bool m_rf_noise_isSet;
QString* data; QString* text;
bool m_data_isSet; bool m_text_isSet;
qint32 pulse_shaping; qint32 pulse_shaping;
bool m_pulse_shaping_isSet; bool m_pulse_shaping_isSet;
@ -177,6 +195,24 @@ private:
qint32 symbol_span; qint32 symbol_span;
bool m_symbol_span_isSet; bool m_symbol_span_isSet;
qint32 character_set;
bool m_character_set_isSet;
qint32 unshift_on_space;
bool m_unshift_on_space_isSet;
qint32 msb_first;
bool m_msb_first_isSet;
qint32 space_high;
bool m_space_high_isSet;
qint32 prefix_crlf;
bool m_prefix_crlf_isSet;
qint32 postfix_crlf;
bool m_postfix_crlf_isSet;
qint32 udp_enabled; qint32 udp_enabled;
bool m_udp_enabled_isSet; bool m_udp_enabled_isSet;