mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-23 16:25:30 +00:00
Export folder download flag
This commit is contained in:
parent
683e95b75b
commit
21030fd90b
1 changed files with 9 additions and 4 deletions
|
@ -76,8 +76,6 @@ public class EntityFolder implements Serializable {
|
||||||
public Integer sync_days;
|
public Integer sync_days;
|
||||||
@NonNull
|
@NonNull
|
||||||
public Integer keep_days;
|
public Integer keep_days;
|
||||||
@NonNull
|
|
||||||
public Boolean initialize = true;
|
|
||||||
public String display;
|
public String display;
|
||||||
@NonNull
|
@NonNull
|
||||||
public Boolean hide = false;
|
public Boolean hide = false;
|
||||||
|
@ -86,6 +84,9 @@ public class EntityFolder implements Serializable {
|
||||||
@NonNull
|
@NonNull
|
||||||
public Boolean notify = false;
|
public Boolean notify = false;
|
||||||
public String[] keywords;
|
public String[] keywords;
|
||||||
|
|
||||||
|
@NonNull
|
||||||
|
public Boolean initialize = true;
|
||||||
public Boolean tbc; // to be created
|
public Boolean tbc; // to be created
|
||||||
public Boolean tbd; // to be deleted
|
public Boolean tbd; // to be deleted
|
||||||
public String state;
|
public String state;
|
||||||
|
@ -188,6 +189,7 @@ public class EntityFolder implements Serializable {
|
||||||
this.level.equals(other.level) &&
|
this.level.equals(other.level) &&
|
||||||
this.synchronize.equals(other.synchronize) &&
|
this.synchronize.equals(other.synchronize) &&
|
||||||
this.poll.equals(other.poll) &&
|
this.poll.equals(other.poll) &&
|
||||||
|
this.download.equals(other.download) &&
|
||||||
this.sync_days.equals(other.sync_days) &&
|
this.sync_days.equals(other.sync_days) &&
|
||||||
this.keep_days.equals(other.keep_days) &&
|
this.keep_days.equals(other.keep_days) &&
|
||||||
(this.display == null ? other.display == null : this.display.equals(other.display)) &&
|
(this.display == null ? other.display == null : this.display.equals(other.display)) &&
|
||||||
|
@ -216,6 +218,7 @@ public class EntityFolder implements Serializable {
|
||||||
json.put("level", level);
|
json.put("level", level);
|
||||||
json.put("synchronize", synchronize);
|
json.put("synchronize", synchronize);
|
||||||
json.put("poll", poll);
|
json.put("poll", poll);
|
||||||
|
json.put("download", download);
|
||||||
json.put("sync_days", sync_days);
|
json.put("sync_days", sync_days);
|
||||||
json.put("keep_days", keep_days);
|
json.put("keep_days", keep_days);
|
||||||
json.put("display", display);
|
json.put("display", display);
|
||||||
|
@ -236,10 +239,12 @@ public class EntityFolder implements Serializable {
|
||||||
folder.level = 0;
|
folder.level = 0;
|
||||||
|
|
||||||
folder.synchronize = json.getBoolean("synchronize");
|
folder.synchronize = json.getBoolean("synchronize");
|
||||||
|
|
||||||
if (json.has("poll"))
|
if (json.has("poll"))
|
||||||
folder.poll = json.getBoolean("poll");
|
folder.poll = json.getBoolean("poll");
|
||||||
else
|
|
||||||
folder.poll = false;
|
if (json.has("download"))
|
||||||
|
folder.download = json.getBoolean("download");
|
||||||
|
|
||||||
if (json.has("after"))
|
if (json.has("after"))
|
||||||
folder.sync_days = json.getInt("after");
|
folder.sync_days = json.getInt("after");
|
||||||
|
|
Loading…
Reference in a new issue