diff options
Diffstat (limited to 'src/main/java/org/zwobble/mammoth/internal/documents/Comment.java')
| -rw-r--r-- | src/main/java/org/zwobble/mammoth/internal/documents/Comment.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/main/java/org/zwobble/mammoth/internal/documents/Comment.java b/src/main/java/org/zwobble/mammoth/internal/documents/Comment.java index f3c76ea..a17365a 100644 --- a/src/main/java/org/zwobble/mammoth/internal/documents/Comment.java +++ b/src/main/java/org/zwobble/mammoth/internal/documents/Comment.java @@ -1,14 +1,19 @@ package org.zwobble.mammoth.internal.documents; import java.util.List; +import java.util.Optional; public class Comment { private final String commentId; private final List<DocumentElement> body; + private final Optional<String> authorName; + private final Optional<String> authorInitials; - public Comment(String commentId, List<DocumentElement> body) { + public Comment(String commentId, List<DocumentElement> body, Optional<String> authorName, Optional<String> authorInitials) { this.commentId = commentId; this.body = body; + this.authorName = authorName; + this.authorInitials = authorInitials; } public String getCommentId() { @@ -18,4 +23,12 @@ public class Comment { public List<DocumentElement> getBody() { return body; } + + public Optional<String> getAuthorInitials() { + return authorInitials; + } + + public Optional<String> getAuthorName() { + return authorName; + } } |
