コンストラクタ追加

This commit is contained in:
r-ca 2024-01-14 16:06:58 +09:00
parent 14fbb56dcd
commit ddd303fa88
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -64,6 +64,27 @@ public class DocumentMeta {
this.defaultBranch = defaultBranch; this.defaultBranch = defaultBranch;
} }
public DocumentMeta(String id, String title, Date updatedAt, Date createdAt, List<DocumentTag> tags, String author, String defaultBranch) {
this.id = id;
this.title = title;
this.updatedAt = updatedAt;
this.createdAt = createdAt;
this.tags = tags;
this.author = author;
this.defaultBranch = defaultBranch;
}
public DocumentMeta(String id, String title, Date updatedAt, Date createdAt, List<DocumentTag> tags, PublicPath path, String author, String defaultBranch) {
this.id = id;
this.title = title;
this.updatedAt = updatedAt;
this.createdAt = createdAt;
this.tags = tags;
this.path = path;
this.author = author;
this.defaultBranch = defaultBranch;
}
// Getter // Getter
/** /**