Created
January 17, 2013 15:06
-
-
Save slashthinking/4556559 to your computer and use it in GitHub Desktop.
weixin 同步的代码。可以看到有很多种同步策略。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public enum SyncmlEngine$SyncType | |
| { | |
| private int value; | |
| static | |
| { | |
| SYNC_SLOW_SYNC = new SyncType("SYNC_SLOW_SYNC", 2, 201); | |
| SYNC_ONE_WAY_FROM_CLIENT = new SyncType("SYNC_ONE_WAY_FROM_CLIENT", 3, 202); | |
| SYNC_REFRESH_FROM_CLIENT = new SyncType("SYNC_REFRESH_FROM_CLIENT", 4, 203); | |
| SYNC_ONE_WAY_FROM_SERVER = new SyncType("SYNC_ONE_WAY_FROM_SERVER", 5, 204); | |
| SYNC_REFRESH_FROM_SERVER = new SyncType("SYNC_REFRESH_FROM_SERVER", 6, 205); | |
| SYNC_RESTORE_FROM_SERVER = new SyncType("SYNC_RESTORE_FROM_SERVER", 7, 213); | |
| SYNC_COVER_SERVER = new SyncType("SYNC_COVER_SERVER", 8, 215); | |
| SyncType[] arrayOfSyncType = new SyncType[9]; | |
| arrayOfSyncType[0] = SYNC_NONE; | |
| arrayOfSyncType[1] = SYNC_TWO_WAY; | |
| arrayOfSyncType[2] = SYNC_SLOW_SYNC; | |
| arrayOfSyncType[3] = SYNC_ONE_WAY_FROM_CLIENT; | |
| arrayOfSyncType[4] = SYNC_REFRESH_FROM_CLIENT; | |
| arrayOfSyncType[5] = SYNC_ONE_WAY_FROM_SERVER; | |
| arrayOfSyncType[6] = SYNC_REFRESH_FROM_SERVER; | |
| arrayOfSyncType[7] = SYNC_RESTORE_FROM_SERVER; | |
| arrayOfSyncType[8] = SYNC_COVER_SERVER; | |
| ENUM$VALUES = arrayOfSyncType; | |
| } | |
| private SyncmlEngine$SyncType(int arg3) | |
| { | |
| int j; | |
| this.value = j; | |
| } | |
| public final int toInt() | |
| { | |
| return this.value; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment