6 #ifndef SWIFT_CORE_AFV_DTO_H
7 #define SWIFT_CORE_AFV_DTO_H
10 #include <QJsonObject>
14 #include "msgpack.hpp"
16 namespace swift::core::afv
146 dto.
id =
static_cast<quint16
>(json.
value(
"id").
toInt());
QByteArray fromBase64(const QByteArray &base64, QByteArray::Base64Options options)
QJsonValue value(QLatin1StringView key) const const
double toDouble(double defaultValue) const const
int toInt(int defaultValue) const const
QJsonObject toObject() const const
QString toString() const const
QByteArray toLocal8Bit() const const
AudioRxOnTransceiversDto.
std::vector< RxTransceiverDto > transceivers
Properties.
bool lastPacket
Properties.
static QByteArray getDtoName()
Names.
uint sequenceCounter
Properties.
static QByteArray getShortDtoName()
Names.
std::string callsign
Properties.
std::vector< char > audio
Properties.
AudioTxOnTransceiversDto.
uint sequenceCounter
Properties.
std::vector< char > audio
Properties.
bool lastPacket
Properties.
std::vector< TxTransceiverDto > transceivers
Properties.
static QByteArray getShortDtoName()
Names.
static QByteArray getDtoName()
Names.
std::string callsign
Properties.
QString channelTag
Properties.
QByteArray aeadReceiveKey
Properties.
QByteArray aeadTransmitKey
Properties.
QJsonObject toJson() const
To JSON.
QByteArray hmacKey
Properties.
static CryptoDtoChannelConfigDto fromJson(const QJsonObject &json)
From JSON.
static QByteArray getDtoName()
Name.
static QByteArray getShortDtoName()
Name.
static QByteArray getShortDtoName()
Name.
std::string callsign
callsign
static QByteArray getDtoName()
Name.
bool lastPacket
Used to indicate to receiver that the sender has stopped sending.
QByteArray audio
Opus compressed audio.
QString callsign
Callsign that audio originates from.
uint sequenceCounter
Receiver optionally uses this in reordering algorithm/gap detection.
QJsonObject toJson() const
To JSON.
VoiceServerConnectionDataDto VoiceServer
Properties.
static PostCallsignResponseDto fromJson(const QJsonObject &json)
From JSON.
float distanceRatio
Properties.
uint32_t frequency
Properties.
quint32 frequencyAliasHz
Properties.
static StationDto fromJson(const QJsonObject &json)
From JSON.
quint32 frequencyHz
Properties.
QJsonObject toJson() const
To JSON.
double HeightMslM
Properties.
double HeightAglM
Properties.
static TransceiverDto fromJson(const QJsonObject &json)
From JSON.
quint32 frequencyHz
Properties.
Transmit transceiver DTO.
TxTransceiverDto(const TransceiverDto &dto)
Ctor.
TxTransceiverDto(uint16_t value)
Ctor.
TxTransceiverDto()=default
Ctor.
QString addressIpV4
Properties.
QJsonObject toJson() const
To JSON.
static VoiceServerConnectionDataDto fromJson(const QJsonObject &json)
From JSON.
CryptoDtoChannelConfigDto channelConfig
Properties.
QString addressIpV6
Properties.