From f0ed4327ca4b0663d1daa792dc8f200efc7b8713 Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 23 Jan 2024 01:13:00 +0900 Subject: [PATCH] =?UTF-8?q?Model=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/model/VcsRevModel.java | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 model/src/main/java/one/nem/lacerta/model/VcsRevModel.java diff --git a/model/src/main/java/one/nem/lacerta/model/VcsRevModel.java b/model/src/main/java/one/nem/lacerta/model/VcsRevModel.java new file mode 100644 index 00000000..a819179c --- /dev/null +++ b/model/src/main/java/one/nem/lacerta/model/VcsRevModel.java @@ -0,0 +1,80 @@ +package one.nem.lacerta.model; + +import java.util.ArrayList; +import java.util.Date; + +public class VcsRevModel { + + String id; + + String documentId; + + String branchName; + + String commitMessage; + + Date createdAt; + + ArrayList logIds; + + public VcsRevModel(String id, String documentId, String branchName, String commitMessage, Date createdAt, ArrayList logIds) { + this.id = id; + this.documentId = documentId; + this.branchName = branchName; + this.commitMessage = commitMessage; + this.createdAt = createdAt; + this.logIds = logIds; + } + + // Empty constructor + public VcsRevModel() { + } + + public String getId() { + return id; + } + + public String getDocumentId() { + return documentId; + } + + public String getBranchName() { + return branchName; + } + + public String getCommitMessage() { + return commitMessage; + } + + public Date getCreatedAt() { + return createdAt; + } + + public ArrayList getLogIds() { + return logIds; + } + + public void setId(String id) { + this.id = id; + } + + public void setDocumentId(String documentId) { + this.documentId = documentId; + } + + public void setBranchName(String branchName) { + this.branchName = branchName; + } + + public void setCommitMessage(String commitMessage) { + this.commitMessage = commitMessage; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public void setLogIds(ArrayList logIds) { + this.logIds = logIds; + } +}