From b4baee35f091d01c96fe5896dbd77baaae1ed626 Mon Sep 17 00:00:00 2001 From: Mark Struchkov Date: Mon, 20 May 2019 15:46:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D1=82=D0=B0=D0=B9=D0=BC=D0=B5=D1=80,=20=D1=83=D0=B4?= =?UTF-8?q?=D0=B0=D0=BB=D0=B8=D0=BB=20=D0=B2=D0=B8=D0=BA=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D0=BD=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/sadtech/bot/core/domain/Content.java | 2 ++ .../sadtech/bot/core/domain/EmptyContent.java | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 src/main/java/org/sadtech/bot/core/domain/EmptyContent.java diff --git a/src/main/java/org/sadtech/bot/core/domain/Content.java b/src/main/java/org/sadtech/bot/core/domain/Content.java index 1059a82..f65aa19 100644 --- a/src/main/java/org/sadtech/bot/core/domain/Content.java +++ b/src/main/java/org/sadtech/bot/core/domain/Content.java @@ -4,6 +4,8 @@ import java.util.Objects; public abstract class Content { + public static final EmptyContent EMPTY_CONTENT = new EmptyContent(); + private Integer personId; private String message; diff --git a/src/main/java/org/sadtech/bot/core/domain/EmptyContent.java b/src/main/java/org/sadtech/bot/core/domain/EmptyContent.java new file mode 100644 index 0000000..a2ac004 --- /dev/null +++ b/src/main/java/org/sadtech/bot/core/domain/EmptyContent.java @@ -0,0 +1,18 @@ +package org.sadtech.bot.core.domain; + +public class EmptyContent extends Content { + + public EmptyContent() { + + } + + @Override + public String getMessage() { + return ""; + } + + @Override + public void setMessage(String message) { + + } +}