2021-11-10 07:32:51 +05:30
|
|
|
#pragma once
|
|
|
|
|
2021-12-04 05:48:05 +05:30
|
|
|
#include "AccountData.h"
|
2021-11-10 07:32:51 +05:30
|
|
|
|
|
|
|
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-12-04 05:48:05 +05:30
|
|
|
bool parseXTokenResponse(QByteArray &data, Katabasis::Token &output, QString name);
|
2021-11-10 07:32:51 +05:30
|
|
|
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);
|
|
|
|
}
|