|
|
@ -5,6 +5,7 @@ import static java.util.Collections.emptyList;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import com.todoroo.astrid.data.Task;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import org.tasks.data.Alarm;
|
|
|
|
import org.tasks.data.Alarm;
|
|
|
|
|
|
|
|
import org.tasks.data.CaldavAccount;
|
|
|
|
import org.tasks.data.CaldavCalendar;
|
|
|
|
import org.tasks.data.CaldavCalendar;
|
|
|
|
import org.tasks.data.CaldavTask;
|
|
|
|
import org.tasks.data.CaldavTask;
|
|
|
|
import org.tasks.data.Filter;
|
|
|
|
import org.tasks.data.Filter;
|
|
|
@ -22,6 +23,7 @@ class BackupContainer {
|
|
|
|
final List<TagData> tags;
|
|
|
|
final List<TagData> tags;
|
|
|
|
final List<Filter> filters;
|
|
|
|
final List<Filter> filters;
|
|
|
|
final List<GoogleTaskList> googleTaskLists;
|
|
|
|
final List<GoogleTaskList> googleTaskLists;
|
|
|
|
|
|
|
|
private final List<CaldavAccount> caldavAccounts;
|
|
|
|
private final List<CaldavCalendar> caldavCalendars;
|
|
|
|
private final List<CaldavCalendar> caldavCalendars;
|
|
|
|
|
|
|
|
|
|
|
|
BackupContainer(
|
|
|
|
BackupContainer(
|
|
|
@ -29,14 +31,20 @@ class BackupContainer {
|
|
|
|
List<TagData> tags,
|
|
|
|
List<TagData> tags,
|
|
|
|
List<Filter> filters,
|
|
|
|
List<Filter> filters,
|
|
|
|
List<GoogleTaskList> googleTaskLists,
|
|
|
|
List<GoogleTaskList> googleTaskLists,
|
|
|
|
|
|
|
|
List<CaldavAccount> caldavAccounts,
|
|
|
|
List<CaldavCalendar> caldavCalendars) {
|
|
|
|
List<CaldavCalendar> caldavCalendars) {
|
|
|
|
this.tasks = tasks;
|
|
|
|
this.tasks = tasks;
|
|
|
|
this.tags = tags;
|
|
|
|
this.tags = tags;
|
|
|
|
this.filters = filters;
|
|
|
|
this.filters = filters;
|
|
|
|
this.googleTaskLists = googleTaskLists;
|
|
|
|
this.googleTaskLists = googleTaskLists;
|
|
|
|
|
|
|
|
this.caldavAccounts = caldavAccounts;
|
|
|
|
this.caldavCalendars = caldavCalendars;
|
|
|
|
this.caldavCalendars = caldavCalendars;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<CaldavAccount> getCaldavAccounts() {
|
|
|
|
|
|
|
|
return caldavAccounts == null ? emptyList() : caldavAccounts;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<CaldavCalendar> getCaldavCalendars() {
|
|
|
|
public List<CaldavCalendar> getCaldavCalendars() {
|
|
|
|
return caldavCalendars == null ? emptyList() : caldavCalendars;
|
|
|
|
return caldavCalendars == null ? emptyList() : caldavCalendars;
|
|
|
|
}
|
|
|
|
}
|
|
|
|