diff --git a/pom.xml b/pom.xml index af7e00f..fbb1acf 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.sadtech.vkbot vkbot-core - 0.1.0-RELEASE + 0.1.1-SNAPSHOT jar @@ -23,6 +23,7 @@ + 0.5.2-SNAPSHOT 0.5.13-SNAPSHOT 1.2.17 @@ -43,7 +44,7 @@ org.sadtech.bot bot-core - 0.4.3-SNAPSHOT + ${bot.core.ver} diff --git a/src/main/java/org/sadtech/vkbot/core/keyboard/ButtonKeyBoard.java b/src/main/java/org/sadtech/vkbot/core/keyboard/ButtonKeyBoard.java index 58802e4..77b6ed1 100644 --- a/src/main/java/org/sadtech/vkbot/core/keyboard/ButtonKeyBoard.java +++ b/src/main/java/org/sadtech/vkbot/core/keyboard/ButtonKeyBoard.java @@ -4,13 +4,13 @@ import com.google.gson.JsonObject; public class ButtonKeyBoard { - private String type; + private String type = "text"; private String payload; private String label; - private ColorButton color; + private ColorButton color = ColorButton.DEFAULT; + + public ButtonKeyBoard() { - private ButtonKeyBoard() { - throw new IllegalStateException(); } public JsonObject getButton() { diff --git a/src/main/java/org/sadtech/vkbot/core/keyboard/KeyBoard.java b/src/main/java/org/sadtech/vkbot/core/keyboard/KeyBoard.java index 537b05e..d139675 100644 --- a/src/main/java/org/sadtech/vkbot/core/keyboard/KeyBoard.java +++ b/src/main/java/org/sadtech/vkbot/core/keyboard/KeyBoard.java @@ -8,12 +8,11 @@ import java.util.List; public class KeyBoard { - private List lineKeyBoards; - private boolean oneTime; + private List lineKeyBoards = new ArrayList<>(); + private boolean oneTime = true; + + public KeyBoard() { - private KeyBoard() { - lineKeyBoards = new ArrayList<>(); - throw new IllegalStateException(); } public JsonObject getKeyboard() { diff --git a/src/main/java/org/sadtech/vkbot/core/service/distribution/CommentService.java b/src/main/java/org/sadtech/vkbot/core/service/distribution/CommentService.java deleted file mode 100644 index 6830e21..0000000 --- a/src/main/java/org/sadtech/vkbot/core/service/distribution/CommentService.java +++ /dev/null @@ -1,10 +0,0 @@ -package org.sadtech.vkbot.core.service.distribution; - -import org.sadtech.bot.core.domain.Comment; -import org.sadtech.bot.core.service.EventService; - -//@TODO: Дописать класс -public interface CommentService extends EventService { - - -}