Fix serializedName
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Umberto Furno 2019-11-13 18:00:11 +01:00
parent c3e032bf29
commit 01e502455f

View File

@ -17,6 +17,14 @@ public class Card {
public Card() { public Card() {
} }
public String getAuthorId() {
return authorId;
}
public void setAuthorId(String authorId) {
this.authorId = authorId;
}
public String getId() { public String getId() {
return id; return id;
} }
@ -217,13 +225,6 @@ public class Card {
isOvertime = overtime; isOvertime = overtime;
} }
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public int getSort() { public int getSort() {
return sort; return sort;
@ -285,7 +286,7 @@ public class Card {
", endAt='" + endAt + '\'' + ", endAt='" + endAt + '\'' +
", spentTime=" + spentTime + ", spentTime=" + spentTime +
", isOvertime=" + isOvertime + ", isOvertime=" + isOvertime +
", userId='" + userId + '\'' + ", userId='" + authorId + '\'' +
", sort=" + sort + ", sort=" + sort +
", subtaskSort=" + subtaskSort + ", subtaskSort=" + subtaskSort +
", type='" + type + '\'' + ", type='" + type + '\'' +
@ -319,10 +320,11 @@ public class Card {
private Date endAt; private Date endAt;
private int spentTime; private int spentTime;
private Boolean isOvertime; private Boolean isOvertime;
private String userId; //private String userId;
private int sort; private int sort;
private int subtaskSort; private int subtaskSort;
private String type; private String type;
private String linkedId; private String linkedId;
@SerializedName(value = "authorId", alternate = "userId")
private String authorId; private String authorId;
} }