Repos
C++
414 B20 lines Opens in site
Directory
Raw
Download
#pragma once
// Spec: models.md BookmarkItem. id = targetType + ":" + targetId.
#include <string>
#include "core/Json.hpp"
namespace dp {
struct BookmarkItem {
std::string targetType;
std::string targetId;
std::string typeLabel;
std::string title;
std::string url;
static BookmarkItem fromJson(const Json& j);
std::string id() const { return targetType + ":" + targetId; }
};
} // namespace dp