Skip to content
Repos

DevPlaceApp

C++ 369 B19 lines Opens in site

Directory Raw Download

#pragma once
// Spec: models.md Conversation. last_message_at is a raw string (NOT a Date).
#include <string>

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

namespace dp {

struct Conversation {
  User otherUser;
  std::string lastMessage;
  std::string lastMessageAt;
  bool unread = false;

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

}  // namespace dp
42.8ms