package com.huangzj.protoplugin.memo;

/** 备忘录条目（字段需可被持久化组件序列化）。 */
public class MemoItem {

    public String id = "";
    public String title = "";
    public String content = "";
    public long updated = 0L;

    public MemoItem() {}

    public MemoItem(String id, String title, String content, long updated) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.updated = updated;
    }

    public String displayTitle() {
        if (title != null && !title.trim().isEmpty()) {
            return title.trim();
        }
        return "(无标题)";
    }
}
