Skip to content
Repos

DevPlaceApp

C++ 410 B19 lines Opens in site

Directory Raw Download

#pragma once
// Spec: models.md Notifications. Wire key for the groups is notification_groups.
#include <optional>
#include <vector>

#include "core/Date.hpp"
#include "core/Json.hpp"
#include "model/NotificationGroup.hpp"

namespace dp {

struct Notifications {
  std::vector<NotificationGroup> groups;
  std::optional<Date> nextCursor;

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

}  // namespace dp
35.4ms