2021-11-10 02:02:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-12-04 00:18:05 +00:00
|
|
|
#include "AccountData.h"
|
2021-11-10 02:02:51 +00:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
namespace Parsers {
|
|
|
|
bool getDateTime(QJsonValue value, QDateTime& out);
|
|
|
|
bool getString(QJsonValue value, QString& out);
|
|
|
|
bool getNumber(QJsonValue value, double& out);
|
|
|
|
bool getNumber(QJsonValue value, int64_t& out);
|
|
|
|
bool getBool(QJsonValue value, bool& out);
|
2021-11-10 02:02:51 +00:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
bool parseXTokenResponse(QByteArray& data, Katabasis::Token& output, QString name);
|
|
|
|
bool parseMojangResponse(QByteArray& data, Katabasis::Token& output);
|
2021-11-10 02:02:51 +00:00
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
bool parseMinecraftProfile(QByteArray& data, MinecraftProfile& output);
|
|
|
|
bool parseMinecraftProfileMojang(QByteArray& data, MinecraftProfile& output);
|
|
|
|
bool parseMinecraftEntitlements(QByteArray& data, MinecraftEntitlement& output);
|
|
|
|
bool parseRolloutResponse(QByteArray& data, bool& result);
|
|
|
|
} // namespace Parsers
|