mirror of https://github.com/readrops/Readrops.git
Rename config variable for separate state
This commit is contained in:
parent
d15315b53f
commit
b9d6e6d135
|
@ -6,21 +6,21 @@ public class AccountConfig {
|
||||||
.setFeedUrlEditable(true)
|
.setFeedUrlEditable(true)
|
||||||
.setFolderCreation(true)
|
.setFolderCreation(true)
|
||||||
.setNoFolderCase(false)
|
.setNoFolderCase(false)
|
||||||
.setUseStarredItems(false)
|
.setUseSeparateState(false)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
public static final AccountConfig NEXTCLOUD_NEWS = new AccountConfigBuilder()
|
public static final AccountConfig NEXTCLOUD_NEWS = new AccountConfigBuilder()
|
||||||
.setFeedUrlEditable(false)
|
.setFeedUrlEditable(false)
|
||||||
.setFolderCreation(true)
|
.setFolderCreation(true)
|
||||||
.setNoFolderCase(false)
|
.setNoFolderCase(false)
|
||||||
.setUseStarredItems(false)
|
.setUseSeparateState(false)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
public static final AccountConfig FRESHRSS = new AccountConfigBuilder()
|
public static final AccountConfig FRESHRSS = new AccountConfigBuilder()
|
||||||
.setFeedUrlEditable(false)
|
.setFeedUrlEditable(false)
|
||||||
.setFolderCreation(false)
|
.setFolderCreation(false)
|
||||||
.setNoFolderCase(true)
|
.setNoFolderCase(true)
|
||||||
.setUseStarredItems(true)
|
.setUseSeparateState(true)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
private final boolean feedUrlEditable;
|
private final boolean feedUrlEditable;
|
||||||
|
@ -30,10 +30,9 @@ public class AccountConfig {
|
||||||
private final boolean noFolderCase;
|
private final boolean noFolderCase;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This parameter lets know if the account separates items and starred items
|
Let knows if it uses ItemState table to synchronize state
|
||||||
by using the StarredItem table
|
|
||||||
*/
|
*/
|
||||||
private final boolean useStarredItems;
|
private final boolean useSeparateState;
|
||||||
|
|
||||||
public boolean isFeedUrlEditable() {
|
public boolean isFeedUrlEditable() {
|
||||||
return feedUrlEditable;
|
return feedUrlEditable;
|
||||||
|
@ -47,22 +46,22 @@ public class AccountConfig {
|
||||||
return noFolderCase;
|
return noFolderCase;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean useStarredItems() {
|
public boolean useSeparateState() {
|
||||||
return useStarredItems;
|
return useSeparateState;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AccountConfig(AccountConfigBuilder builder) {
|
public AccountConfig(AccountConfigBuilder builder) {
|
||||||
this.feedUrlEditable = builder.feedUrlEditable;
|
this.feedUrlEditable = builder.feedUrlEditable;
|
||||||
this.folderCreation = builder.folderCreation;
|
this.folderCreation = builder.folderCreation;
|
||||||
this.noFolderCase = builder.noFolderCase;
|
this.noFolderCase = builder.noFolderCase;
|
||||||
this.useStarredItems = builder.useStarredItems;
|
this.useSeparateState = builder.useSeparateState;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class AccountConfigBuilder {
|
public static class AccountConfigBuilder {
|
||||||
private boolean feedUrlEditable;
|
private boolean feedUrlEditable;
|
||||||
private boolean folderCreation;
|
private boolean folderCreation;
|
||||||
private boolean noFolderCase;
|
private boolean noFolderCase;
|
||||||
private boolean useStarredItems;
|
private boolean useSeparateState;
|
||||||
|
|
||||||
public AccountConfigBuilder setFeedUrlEditable(boolean feedUrlEditable) {
|
public AccountConfigBuilder setFeedUrlEditable(boolean feedUrlEditable) {
|
||||||
this.feedUrlEditable = feedUrlEditable;
|
this.feedUrlEditable = feedUrlEditable;
|
||||||
|
@ -79,8 +78,8 @@ public class AccountConfig {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AccountConfigBuilder setUseStarredItems(boolean useStarredItems) {
|
public AccountConfigBuilder setUseSeparateState(boolean useSeparateState) {
|
||||||
this.useStarredItems = useStarredItems;
|
this.useSeparateState = useSeparateState;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue