mirror of
https://github.com/sebastiandine/Card-Collection-Manager-3.git
synced 2026-08-28 22:01:12 +00:00
55ace147bc
* initial development * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * pipeline * ci/cd * ci/cd * ci/cd * ci/cd * ci/cd * ci/cd * ci/cd * pokemon * pokemon * pokemon * pokemon * pokemon * pokemon * improvements * improvements * ci/cd * ci/cd * improvements * improvements * improvements * improvements * improvements * improvements * improvements * improvements * improvements --------- Co-authored-by: sdine <sdine@sdine.com>
25 lines
573 B
C++
25 lines
573 B
C++
#pragma once
|
|
|
|
// Set: identifier of a printing run shared by both supported games.
|
|
// JSON shape matches the original Rust Set struct exactly:
|
|
// { "id": "...", "name": "...", "releaseDate": "YYYY/MM/DD" }
|
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
#include <string>
|
|
|
|
namespace ccm {
|
|
|
|
struct Set {
|
|
std::string id;
|
|
std::string name;
|
|
std::string releaseDate; // formatted as "YYYY/MM/DD"
|
|
|
|
friend bool operator==(const Set&, const Set&) = default;
|
|
};
|
|
|
|
void to_json(nlohmann::json& j, const Set& s);
|
|
void from_json(const nlohmann::json& j, Set& s);
|
|
|
|
} // namespace ccm
|