41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
// Module ID: 2004
|
|
// Function ID: 2005
|
|
// Name: getUserId
|
|
// Dependencies: [17, 1115, 2005, 2]
|
|
// Exports: getUserId, setUserId
|
|
|
|
// Module 2004 (getUserId)
|
|
import set from "set" /* 2 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
import set2 from "set" /* 1115 */;
|
|
import enforcingDefault from "enforcing" /* 2005 */;
|
|
|
|
const NativeModules = get_ActivityIndicator.NativeModules;
|
|
const result = set.fileFinishedImporting("modules/app_database/system/StartupData.native.tsx");
|
|
|
|
export const getUserId = function getUserId() {
|
|
if (obj.isAndroid()) {
|
|
let userId = enforcingDefault.getConstants().userId;
|
|
let tmp6 = null;
|
|
if (null != userId) {
|
|
tmp6 = userId;
|
|
}
|
|
return tmp6;
|
|
} else {
|
|
userId = NativeModules.DCDAppDatabase.userId;
|
|
if (userId == null) {
|
|
userId = null;
|
|
}
|
|
return userId;
|
|
}
|
|
obj = set2;
|
|
};
|
|
export const setUserId = function setUserId(id) {
|
|
if (obj.isAndroid()) {
|
|
enforcingDefault.setUserId(id);
|
|
const obj2 = enforcingDefault;
|
|
} else {
|
|
const DCDAppDatabase = NativeModules.DCDAppDatabase;
|
|
DCDAppDatabase.setUserId(id);
|
|
}
|
|
};
|