-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchess24messages.h
36 lines (30 loc) · 1.37 KB
/
chess24messages.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef CHESS24MESSAGES_H
#define CHESS24MESSAGES_H
#include "chess24.h"
namespace Chess24Messages
{
QString connect(UserData, int messageId);
QString getTouramentIds(int messageId);
QString subscribeWebTournament(QString name);
QString subscribeBroadcastChessGame(QString name);
QString getBroadcastChessGame(int,QString name);
QString getWebTournament(int messageId, QString name);
QVariantList tournamentNamesFromJSON(QString data);
QString heartBeat();
void insertFlat(QVariantMap &out, const QVariantMap &root,const QString &name, const QString &column);
void insertNest(QVariantMap &out, const QVariantMap &root,const QVector<QString> &name, const QString &column);
QVariantMap transformWebTournament(const QVariantMap &root);
QVariantMap validWebTournamentGame();
void parseSubtree(QMap<QString,QVariant> &updates,const QVariantMap &valid,const QVariantMap &root);
//QVariantMap validWebTournamentJson();
namespace Helpers{
const QString model_webTournament = "model:webTournamentRedisAR:";
const QString model_broadcastChessGame = "model:BroadcastChessGameRedisAR:";
int findDataStart(QString);
QString getData(QString);
QString getHeader(QString);
QString buildData(QString name, QVariantList args);
QString mapToString(QVariantMap);
}
};
#endif // CHESS24MESSAGES_H