mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01:00
Added setting to poll instead of synchronize
This commit is contained in:
@@ -69,6 +69,8 @@ public class EntityFolder implements Serializable {
|
||||
@NonNull
|
||||
public Boolean synchronize;
|
||||
@NonNull
|
||||
public Boolean poll = false;
|
||||
@NonNull
|
||||
public Integer sync_days;
|
||||
@NonNull
|
||||
public Integer keep_days;
|
||||
@@ -168,6 +170,9 @@ public class EntityFolder implements Serializable {
|
||||
this.type.equals(other.type) &&
|
||||
this.level.equals(other.level) &&
|
||||
this.synchronize.equals(other.synchronize) &&
|
||||
this.poll.equals(other.poll) &&
|
||||
this.sync_days.equals(other.sync_days) &&
|
||||
this.keep_days.equals(other.keep_days) &&
|
||||
(this.display == null ? other.display == null : this.display.equals(other.display)) &&
|
||||
this.hide == other.hide &&
|
||||
this.unified == other.unified &&
|
||||
@@ -189,6 +194,7 @@ public class EntityFolder implements Serializable {
|
||||
json.put("type", type);
|
||||
json.put("level", level);
|
||||
json.put("synchronize", synchronize);
|
||||
json.put("poll", poll);
|
||||
json.put("sync_days", sync_days);
|
||||
json.put("keep_days", keep_days);
|
||||
json.put("display", display);
|
||||
@@ -208,6 +214,10 @@ public class EntityFolder implements Serializable {
|
||||
folder.level = 0;
|
||||
|
||||
folder.synchronize = json.getBoolean("synchronize");
|
||||
if (json.has("poll"))
|
||||
folder.poll = json.getBoolean("poll");
|
||||
else
|
||||
folder.poll = false;
|
||||
|
||||
if (json.has("after"))
|
||||
folder.sync_days = json.getInt("after");
|
||||
|
||||
Reference in New Issue
Block a user