Fixed importing swipe left/right target

This commit is contained in:
M66B
2019-02-07 08:29:39 +00:00
parent c0f45d34d9
commit 99732b22c3
6 changed files with 29 additions and 0 deletions

View File

@@ -108,6 +108,7 @@ public class EntityAccount implements Serializable {
public JSONObject toJSON() throws JSONException {
JSONObject json = new JSONObject();
json.put("id", id);
json.put("auth_type", auth_type);
json.put("host", host);
json.put("starttls", starttls);
@@ -139,6 +140,7 @@ public class EntityAccount implements Serializable {
public static EntityAccount fromJSON(JSONObject json) throws JSONException {
EntityAccount account = new EntityAccount();
// id
account.auth_type = json.getInt("auth_type");
account.host = json.getString("host");
account.starttls = (json.has("starttls") && json.getBoolean("starttls"));