diff --git a/src/main/java/org/ntlab/amaryllis/server/entities/Comment.java b/src/main/java/org/ntlab/amaryllis/server/entities/Comment.java new file mode 100644 index 0000000..8deb43d --- /dev/null +++ b/src/main/java/org/ntlab/amaryllis/server/entities/Comment.java @@ -0,0 +1,25 @@ +package org.ntlab.amaryllis.server.entities; + + +import org.w3c.dom.Text; +import java.util.UUID; +import static java.util.UUID.randomUUID; + +public class Comment { + String commentId; + String uid; + String text; + + public Comment(String uid, String text) { + this.commentId = randomUUID().toString(); + this.uid = uid; + this.text = text; + } + + public String getCid(){ return commentId; } + + public String getUid(){ return uid; } + + public String getText(){ return text; } + +}