parent
7429e2cbc7
commit
a79a765fac
@ -7,7 +7,9 @@ import java.util.Date;
|
||||
public class Comment {
|
||||
@SerializedName("_id")
|
||||
private String id;
|
||||
@SerializedName(value = "comment", alternate = "text")
|
||||
private String comment;
|
||||
@SerializedName(value = "authorId", alternate = "userId")
|
||||
private String authorId;
|
||||
private String boardId;
|
||||
private String cardId;
|
||||
@ -26,6 +28,22 @@ public class Comment {
|
||||
return authorId;
|
||||
}
|
||||
|
||||
public String getBoardId() {
|
||||
return boardId;
|
||||
}
|
||||
|
||||
public String getCardId() {
|
||||
return cardId;
|
||||
}
|
||||
|
||||
public Date getCreatedAt() {
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public Date getModifiedAt() {
|
||||
return modifiedAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Comment{" +
|
||||
|
@ -103,6 +103,8 @@ public class CardCommentServiceTest {
|
||||
).execute().body();
|
||||
|
||||
assertNotNull(comment);
|
||||
assertNotNull(comment.getAuthorId());
|
||||
assertNotNull(comment.getComment());
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user