Skip to content
Repos

DevPlaceApp

C++ 563 B28 lines Opens in site

Directory Raw Download

#pragma once
// Spec: models.md Projects.
#include <cstdint>
#include <optional>
#include <string>
#include <vector>

#include "core/Date.hpp"
#include "core/Json.hpp"
#include "model/Project.hpp"
#include "model/User.hpp"

namespace dp {

struct Projects {
  std::vector<Project> projects;
  std::string currentTab;
  std::string search;
  std::string projectType;
  std::int64_t totalCount = 0;
  std::optional<Date> nextCursor;
  std::int64_t totalMembers = 0;
  std::vector<User> topAuthors;

  static Projects fromJson(const Json& j);
};

}  // namespace dp
29.2ms