From 01e502455fb35b3a11de87a5776ac52c38a09a91 Mon Sep 17 00:00:00 2001 From: Umberto Furno Date: Wed, 13 Nov 2019 18:00:11 +0100 Subject: [PATCH] Fix serializedName --- .../main/java/wekan/wrapper/entity/Card.java | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/wrapper/src/main/java/wekan/wrapper/entity/Card.java b/wrapper/src/main/java/wekan/wrapper/entity/Card.java index 14d7bde..b79bfff 100644 --- a/wrapper/src/main/java/wekan/wrapper/entity/Card.java +++ b/wrapper/src/main/java/wekan/wrapper/entity/Card.java @@ -17,6 +17,14 @@ public class Card { public Card() { } + public String getAuthorId() { + return authorId; + } + + public void setAuthorId(String authorId) { + this.authorId = authorId; + } + public String getId() { return id; } @@ -217,13 +225,6 @@ public class Card { isOvertime = overtime; } - public String getUserId() { - return userId; - } - - public void setUserId(String userId) { - this.userId = userId; - } public int getSort() { return sort; @@ -285,7 +286,7 @@ public class Card { ", endAt='" + endAt + '\'' + ", spentTime=" + spentTime + ", isOvertime=" + isOvertime + - ", userId='" + userId + '\'' + + ", userId='" + authorId + '\'' + ", sort=" + sort + ", subtaskSort=" + subtaskSort + ", type='" + type + '\'' + @@ -319,10 +320,11 @@ public class Card { private Date endAt; private int spentTime; private Boolean isOvertime; - private String userId; + //private String userId; private int sort; private int subtaskSort; private String type; private String linkedId; + @SerializedName(value = "authorId", alternate = "userId") private String authorId; }