aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick/model/CommandResult.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-08 21:38:27 +0300
committerGravatar Vitaly Takmazov2018-11-08 21:38:27 +0300
commit7aaa3f9a29c280f01c677c918932620be45cdbd7 (patch)
tree39947b2c889afd08f9c73ba54fab91159d2af258 /juick-common/src/main/java/com/juick/model/CommandResult.java
parent3ea9770d0d43fbe45449ac4531ec4b0a374d98ea (diff)
Merge everything into single Spring Boot application
Diffstat (limited to 'juick-common/src/main/java/com/juick/model/CommandResult.java')
-rw-r--r--juick-common/src/main/java/com/juick/model/CommandResult.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/juick-common/src/main/java/com/juick/model/CommandResult.java b/juick-common/src/main/java/com/juick/model/CommandResult.java
deleted file mode 100644
index c310756c..00000000
--- a/juick-common/src/main/java/com/juick/model/CommandResult.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package com.juick.model;
-
-import com.juick.Message;
-
-import java.util.Optional;
-
-public class CommandResult {
- private String text;
- private String markdown;
- private Message newMessage;
-
- public String getText() {
- return text;
- }
- public String getMarkdown() {
- return markdown;
- }
-
- public Optional<Message> getNewMessage() {
- return Optional.ofNullable(newMessage);
- }
- public static CommandResult build(Message newMessage, String text, String markdown) {
- CommandResult result = new CommandResult();
- result.newMessage = newMessage;
- result.text = text;
- result.markdown = markdown;
- return result;
- }
- public static CommandResult fromString(String text) {
- CommandResult result = new CommandResult();
- result.text = text;
- return result;
- }
-
-}