mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-05-17 08:16:06 +03:00
* refactor: remove serverConfig struct * refactor: add warnings for api v1 configs * refactor: moved the server type definition to a separate namespace * refactor: simplified gateway stacks * fix: fixed server description * fix: fixed postAsync reply usage * fix: fixed validateConfig call * fix: fixed server name in notifications * fix: fixed initPrepareConfigHandler for lagacy configs
25 lines
415 B
C++
25 lines
415 B
C++
#ifndef AUTHDATA_H
|
|
#define AUTHDATA_H
|
|
|
|
#include <QJsonObject>
|
|
#include <QString>
|
|
|
|
#include "core/utils/serverConfigUtils.h"
|
|
#include "core/utils/constants/apiKeys.h"
|
|
#include "core/utils/constants/apiConstants.h"
|
|
|
|
namespace amnezia
|
|
{
|
|
|
|
struct AuthData {
|
|
QString apiKey;
|
|
|
|
QJsonObject toJson() const;
|
|
static AuthData fromJson(const QJsonObject& json);
|
|
};
|
|
|
|
} // namespace amnezia
|
|
|
|
#endif // AUTHDATA_H
|
|
|