File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Source/library/src/main/java/im/delight/android/ddp Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
19
19
import im .delight .android .ddp .db .DataStore ;
20
+ import im .delight .android .ddp .db .Database ;
20
21
import java .net .URI ;
21
22
import android .content .SharedPreferences ;
22
23
import android .content .Context ;
@@ -1209,10 +1210,24 @@ private void announceSessionReady(final boolean signedInAutomatically) {
1209
1210
/**
1210
1211
* Returns the data store that was set in the constructor and that contains all data received from the server
1211
1212
*
1212
- * @return the data store
1213
+ * @return the data store or `null`
1213
1214
*/
1214
1215
public DataStore getDataStore () {
1215
1216
return mDataStore ;
1216
1217
}
1217
1218
1219
+ /**
1220
+ * Returns the database that was set in the constructor and that contains all data received from the server
1221
+ *
1222
+ * @return the database or `null`
1223
+ */
1224
+ public Database getDatabase () {
1225
+ if (mDataStore instanceof Database ) {
1226
+ return (Database ) mDataStore ;
1227
+ }
1228
+ else {
1229
+ return null ;
1230
+ }
1231
+ }
1232
+
1218
1233
}
You can’t perform that action at this time.
0 commit comments