Багфикс

This commit is contained in:
Mark Struchkov 2019-05-08 17:14:04 +03:00
parent 0819f2d78b
commit 593e5f8c34
4 changed files with 11 additions and 21 deletions

View File

@ -6,7 +6,7 @@
<groupId>org.sadtech.vkbot</groupId> <groupId>org.sadtech.vkbot</groupId>
<artifactId>vkbot-core</artifactId> <artifactId>vkbot-core</artifactId>
<version>0.1.0-RELEASE</version> <version>0.1.1-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<build> <build>
@ -23,6 +23,7 @@
</build> </build>
<properties> <properties>
<bot.core.ver>0.5.2-SNAPSHOT</bot.core.ver>
<vksdk.ver>0.5.13-SNAPSHOT</vksdk.ver> <vksdk.ver>0.5.13-SNAPSHOT</vksdk.ver>
<log4j.ver>1.2.17</log4j.ver> <log4j.ver>1.2.17</log4j.ver>
</properties> </properties>
@ -43,7 +44,7 @@
<dependency> <dependency>
<groupId>org.sadtech.bot</groupId> <groupId>org.sadtech.bot</groupId>
<artifactId>bot-core</artifactId> <artifactId>bot-core</artifactId>
<version>0.4.3-SNAPSHOT</version> <version>${bot.core.ver}</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -4,13 +4,13 @@ import com.google.gson.JsonObject;
public class ButtonKeyBoard { public class ButtonKeyBoard {
private String type; private String type = "text";
private String payload; private String payload;
private String label; private String label;
private ColorButton color; private ColorButton color = ColorButton.DEFAULT;
public ButtonKeyBoard() {
private ButtonKeyBoard() {
throw new IllegalStateException();
} }
public JsonObject getButton() { public JsonObject getButton() {

View File

@ -8,12 +8,11 @@ import java.util.List;
public class KeyBoard { public class KeyBoard {
private List<LineKeyBoard> lineKeyBoards; private List<LineKeyBoard> lineKeyBoards = new ArrayList<>();
private boolean oneTime; private boolean oneTime = true;
public KeyBoard() {
private KeyBoard() {
lineKeyBoards = new ArrayList<>();
throw new IllegalStateException();
} }
public JsonObject getKeyboard() { public JsonObject getKeyboard() {

View File

@ -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<Comment> {
}