Merge tag 'release-0.5.0' into develop

release-0.5.0
This commit is contained in:
Mark Struchkov 2019-05-08 13:03:46 +03:00
commit 387e091efd
5 changed files with 2 additions and 42 deletions

View File

@ -65,7 +65,7 @@ public class BoxAnswer {
this.stickerId = stickerId;
}
public BoxAnswer clone() {
public BoxAnswer prototype() {
return new BoxAnswer(this);
}

View File

@ -1,14 +0,0 @@
package org.sadtech.bot.core.domain;
//@TODO: Дописать класс
public class Comment extends Content {
private Integer postId;
private String text;
private Integer data;
public Comment() {
}
}

View File

@ -44,7 +44,7 @@ public class Mail extends Content {
this.message = message;
}
public Mail clone() {
public Mail prototype() {
return new Mail(this);
}

View File

@ -1,9 +0,0 @@
package org.sadtech.bot.core.repository;
import org.sadtech.bot.core.domain.Comment;
public interface CommentRepository {
void add(Comment comment);
}

View File

@ -1,17 +0,0 @@
package org.sadtech.bot.core.repository.impl;
import org.sadtech.bot.core.domain.Comment;
import org.sadtech.bot.core.repository.CommentRepository;
import java.util.ArrayList;
import java.util.List;
public class CommentRepositoryList implements CommentRepository {
private List<Comment> comments = new ArrayList<>();
@Override
public void add(Comment comment) {
comments.add(comment);
}
}