Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
Change sync state enum names
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellsundt committed Aug 27, 2014
1 parent 11b382c commit d5b3f7a
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,24 @@
*
* <pre>
* insert:
* state = INSERTING
* state = new_row
*
* update:
* if state == REST:
* state = UPDATING
* if state == synced:
* state = changed
*
* delete:
* if state == REST or state == UPDATING:
* state = DELETING
* if state == synced or state == changed:
* state = deleted
* don't actually delete yet (defer until sync)
* else if state == INSERTING:
* actually delete
* else if state == new_row:
* actually delete row in database
* </pre>
* </p>
*
* @author [email protected]
*
*/
public enum SyncState {
rest, inserting, updating, deleting, conflicting, rest_pending_files;
synced, new_row, changed, deleted, in_conflict, synced_pending_files;
}

0 comments on commit d5b3f7a

Please sign in to comment.