Skip to content

Commit 89b2ff9

Browse files
SyncCredentials: use CredentialsType constants
1 parent 72d1acf commit 89b2ff9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

objectbox-java/src/main/java/io/objectbox/sync/SyncCredentials.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,13 @@ public static SyncCredentials none() {
6060
}
6161

6262
public enum CredentialsType {
63-
// Note: this needs to match with CredentialsType in Core.
64-
65-
NONE(1),
66-
SHARED_SECRET(2),
67-
GOOGLE(3),
68-
SHARED_SECRET_SIPPED(4),
69-
OBX_ADMIN_USER(5),
70-
USER_PASSWORD(6);
63+
64+
NONE(io.objectbox.sync.CredentialsType.None),
65+
SHARED_SECRET(io.objectbox.sync.CredentialsType.SharedSecret),
66+
GOOGLE(io.objectbox.sync.CredentialsType.GoogleAuth),
67+
SHARED_SECRET_SIPPED(io.objectbox.sync.CredentialsType.SharedSecretSipped),
68+
OBX_ADMIN_USER(io.objectbox.sync.CredentialsType.ObxAdminUser),
69+
USER_PASSWORD(io.objectbox.sync.CredentialsType.UserPassword);
7170

7271
public final long id;
7372

0 commit comments

Comments
 (0)