2021-11-10 02:02:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-11-20 15:22:22 +00:00
|
|
|
#include "../AccountData.h"
|
2021-11-10 02:02:51 +00: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);
|
|
|
|
|
|
|
|
bool parseXTokenResponse(QByteArray &data, Katabasis::Token &output, const char * name);
|
|
|
|
bool parseMojangResponse(QByteArray &data, Katabasis::Token &output);
|
|
|
|
|
|
|
|
bool parseMinecraftProfile(QByteArray &data, MinecraftProfile &output);
|
|
|
|
bool parseMinecraftEntitlements(QByteArray &data, MinecraftEntitlement &output);
|
|
|
|
bool parseRolloutResponse(QByteArray &data, bool& result);
|
|
|
|
}
|