#pragma once // Spec: models.md Poll. `voted` is a string on the wire (not a bool). #include #include #include #include #include "core/Json.hpp" #include "model/PollOption.hpp" namespace dp { struct Poll { std::string id; std::string question; std::vector options; std::int64_t total = 0; std::optional myChoice; std::optional voted; static Poll fromJson(const Json& j); }; } // namespace dp