48 using Ptr = std::shared_ptr<MapVersion>;
51 MapVersionStates::E state = MapVersionStates::E::UNK;
52 std::u16string createdAt;
54 std::vector<MapDifficulty::Ptr> diffs;
55 std::u16string downloadURL;
56 std::u16string coverURL;
57 std::u16string previewURL;
75 CP_SDK_JSON_OPERATORS_INLINE({
76 CP_SDK_JSON_SERIALIZE_STRING(hash);
78 CP_SDK_JSON_SERIALIZE_STRING(createdAt);
79 CP_SDK_JSON_SERIALIZE_INT32(sageScore);
80 CP_SDK_JSON_SERIALIZE_OBJECT_ARRAY(diffs);
81 CP_SDK_JSON_SERIALIZE_STRING(downloadURL);
82 CP_SDK_JSON_SERIALIZE_STRING(coverURL);
83 CP_SDK_JSON_SERIALIZE_STRING(previewURL);
86 CP_SDK_JSON_UNSERIALIZE_STRING(hash);
87 CP_SDK_JSON_UNSERIALIZE_ENUM(state,
MapVersionStates, MapVersionStates::E::UNK);
88 CP_SDK_JSON_UNSERIALIZE_STRING(createdAt);
89 CP_SDK_JSON_UNSERIALIZE_INT32(sageScore);
90 CP_SDK_JSON_UNSERIALIZE_OBJECT_ARRAY(diffs);
91 CP_SDK_JSON_UNSERIALIZE_STRING(downloadURL);
92 CP_SDK_JSON_UNSERIALIZE_STRING(coverURL);
93 CP_SDK_JSON_UNSERIALIZE_STRING(previewURL);