mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 10:01:22 +01:00
Fixed importing swipe left/right target
This commit is contained in:
@@ -71,6 +71,7 @@ public class EntityAnswer implements Serializable {
|
||||
|
||||
public JSONObject toJSON() throws JSONException {
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("id", id);
|
||||
json.put("name", name);
|
||||
json.put("text", text);
|
||||
return json;
|
||||
@@ -78,6 +79,7 @@ public class EntityAnswer implements Serializable {
|
||||
|
||||
public static EntityAnswer fromJSON(JSONObject json) throws JSONException {
|
||||
EntityAnswer answer = new EntityAnswer();
|
||||
// id
|
||||
answer.name = json.getString("name");
|
||||
answer.text = json.getString("text");
|
||||
return answer;
|
||||
|
||||
Reference in New Issue
Block a user