fix serialization of Comment
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

fix #8
This commit is contained in:
Raffaele Mignone 2019-11-13 14:48:58 +01:00
parent 7429e2cbc7
commit a79a765fac
Signed by: norangebit
GPG Key ID: F5255658CB220573
2 changed files with 20 additions and 0 deletions

View File

@ -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{" +

View File

@ -103,6 +103,8 @@ public class CardCommentServiceTest {
).execute().body();
assertNotNull(comment);
assertNotNull(comment.getAuthorId());
assertNotNull(comment.getComment());
} catch (IOException e) {
e.printStackTrace();
}