-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2815 from dimagi/copy-connect-database-upgrades
Copy CCC Global database changes - Version 6
- Loading branch information
Showing
4 changed files
with
42 additions
and
1 deletion.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
app/src/org/commcare/android/database/global/models/ConnectKeyRecord.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.commcare.android.database.global.models; | ||
|
||
import org.commcare.android.storage.framework.Persisted; | ||
import org.commcare.models.framework.Persisting; | ||
import org.commcare.modern.database.Table; | ||
|
||
@Table(ConnectKeyRecord.STORAGE_KEY) | ||
public class ConnectKeyRecord extends Persisted { | ||
public static final String STORAGE_KEY = "connect_key"; | ||
|
||
@Persisting(1) | ||
String userId; | ||
@Persisting(2) | ||
String encryptedPassphrase; | ||
|
||
public ConnectKeyRecord() { } | ||
public ConnectKeyRecord(String userId, String encryptedPassphrase) { | ||
this.userId = userId; | ||
this.encryptedPassphrase = encryptedPassphrase; | ||
} | ||
|
||
public String getUserID() { return userId; } | ||
public String getEncryptedPassphrase() { return encryptedPassphrase; } | ||
} |
This file contains 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
This file contains 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
This file contains 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