Back to project page sms-backup-plus.
The source code is released under:
Apache License
If you think the Android project sms-backup-plus listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.zegoggles.smssync.service; /*from ww w .j ava2s . c o m*/ import com.zegoggles.smssync.mail.BackupImapStore; public class RestoreConfig { final int tries; final boolean restoreSms; final boolean restoreCallLog; final boolean restoreOnlyStarred; final int maxRestore; final int currentRestoredItem; final BackupImapStore imapStore; public RestoreConfig(BackupImapStore imapStore, int tries, boolean restoreSms, boolean restoreCallLog, boolean restoreOnlyStarred, int maxRestore, int currentRestoredItem) { this.tries = tries; this.imapStore = imapStore; this.restoreSms = restoreSms; this.restoreCallLog = restoreCallLog; this.restoreOnlyStarred = restoreOnlyStarred; this.maxRestore = maxRestore; this.currentRestoredItem = currentRestoredItem; } public RestoreConfig retryWithStore(int currentItem, BackupImapStore backupImapStore) { return new RestoreConfig( backupImapStore, tries + 1, restoreSms, restoreCallLog, restoreOnlyStarred, maxRestore, currentItem ); } @Override public String toString() { return "RestoreConfig{" + "currentTry=" + tries + ", restoreSms=" + restoreSms + ", restoreCallLog=" + restoreCallLog + ", restoreOnlyStarred=" + restoreOnlyStarred + ", maxRestore=" + maxRestore + ", currentRestoredItem=" + currentRestoredItem + ", imapStore=" + imapStore + '}'; } }