| 5 | #include <QStringList> |
| 6 | |
| 7 | QString AuthSession::serializeUserProperties() |
| 8 | { |
| 9 | QJsonObject userAttrs; |
| 10 | /* |
| 11 | for (auto key : u.properties.keys()) |
| 12 | { |
| 13 | auto array = QJsonArray::fromStringList(u.properties.values(key)); |
| 14 | userAttrs.insert(key, array); |
| 15 | } |
| 16 | */ |
| 17 | QJsonDocument value(userAttrs); |
| 18 | return value.toJson(QJsonDocument::Compact); |
| 19 | |
| 20 | } |
| 21 | |
| 22 | bool AuthSession::MakeOffline(QString offline_playername) |
| 23 | { |
no test coverage detected