#pragma once #include "wms_ecc_ibase.h" #include "IWMS2ECC.h" #include class WMS_JSON_DS_EXPORT PlayerInfo : public IBase { public: static QJsonObject toJson(const IWMS2ECC::PlayerInfo &pi); static IWMS2ECC::PlayerInfo fromJson(const QJsonObject &obj); QJsonObject toJsonAll() const; static PlayerInfo fromJsonAll(const QJsonObject &map); QVariantMap toVariantMap() const; static PlayerInfo fromVariantMap(const QVariantMap &map); QVariantMap toVariantMapAll() const; static PlayerInfo fromVariantMapAll(const QVariantMap &map); IWMS2ECC::PlayerInfo getPlayerInfo() const { return m_playerInfo; } QMap getAllPlayerInfo() const { return m_allPlayerInfo; } bool getOk() const { return m_ok; } void setPlayerInfo(const IWMS2ECC::PlayerInfo &info) { m_playerInfo = info; } void setAllPlayerInfo(const QMap &pi) { m_allPlayerInfo = pi; } void setOk(bool ok) { m_ok = ok; } private: QMap m_allPlayerInfo; mutable IWMS2ECC::PlayerInfo m_playerInfo; bool m_ok = false; };