Serialization of the class Comment not well defined #8
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
get_all_comments
method returns filedsauthorId
andcomment
, while theget_board_card_comment
method returnsuserID
andtext
.I don't think duplicating fields is the best thing to do.
It is necessary to see if it is possible to set Gson so that he recognizes the two competing fields as the only one.
Try this: @SerializedName(value = "authorId", alternate = {"userId"})