Багфикс

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

View File

@ -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() {

View File

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