File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
objectbox-java/src/main/java/io/objectbox/sync Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ public boolean isLoggedIn() {
98
98
/**
99
99
* Gets the current state of this sync client. Throws if {@link #close()} was called.
100
100
*/
101
- public SyncClientState getSyncState () {
102
- return SyncClientState .fromId (nativeGetState (handle ));
101
+ public SyncState getSyncState () {
102
+ return SyncState .fromId (nativeGetState (handle ));
103
103
}
104
104
105
105
@ Override
@@ -268,7 +268,7 @@ public void notifyConnectionAvailable() {
268
268
private native void nativeSetUncommittedAcks (long handle , boolean uncommittedAcks );
269
269
270
270
/**
271
- * Returns the current {@link SyncClientState } value.
271
+ * Returns the current {@link SyncState } value.
272
272
*/
273
273
private native int nativeGetState (long handle );
274
274
Original file line number Diff line number Diff line change 3
3
/**
4
4
* Returned by {@link io.objectbox.sync.SyncClientImpl#getSyncState()}.
5
5
*/
6
- public enum SyncClientState {
6
+ public enum SyncState {
7
7
8
8
UNKNOWN (0 ),
9
9
CREATED (1 ),
@@ -16,12 +16,12 @@ public enum SyncClientState {
16
16
17
17
public final int id ;
18
18
19
- SyncClientState (int id ) {
19
+ SyncState (int id ) {
20
20
this .id = id ;
21
21
}
22
22
23
- public static SyncClientState fromId (int id ) {
24
- for (SyncClientState value : values ()) {
23
+ public static SyncState fromId (int id ) {
24
+ for (SyncState value : values ()) {
25
25
if (value .id == id ) return value ;
26
26
}
27
27
return UNKNOWN ;
You can’t perform that action at this time.
0 commit comments