decord/source/modules/app_database/system/StartupData.native.tsx

39 lines
1,014 B
TypeScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 1899
2026-07-23 10:11:24 +00:00
// Function ID: 21339
2026-07-20 16:05:17 +00:00
// Name: getUserId
2026-07-23 10:11:24 +00:00
// Dependencies: [27, 477, 1900, 2]
2026-07-20 16:05:17 +00:00
// Exports: getUserId, setUserId
// Module 1899 (getUserId)
2026-07-23 10:11:24 +00:00
import { NativeModules } from "get ActivityIndicator";
const result = require("enforcing").fileFinishedImporting("modules/app_database/system/StartupData.native.tsx");
2026-07-20 16:05:17 +00:00
export const getUserId = function getUserId() {
if (obj.isAndroid()) {
2026-07-23 10:11:24 +00:00
const userId2 = importDefault(1900).getConstants().userId;
2026-07-20 16:05:17 +00:00
let tmp5 = null;
if (null != userId2) {
tmp5 = userId2;
}
return tmp5;
} else {
const userId = NativeModules.DCDAppDatabase.userId;
let tmp2 = null;
if (null != userId) {
tmp2 = userId;
}
return tmp2;
}
2026-07-23 10:11:24 +00:00
obj = require(477) /* set */;
2026-07-20 16:05:17 +00:00
};
export const setUserId = function setUserId(id) {
if (obj.isAndroid()) {
2026-07-23 10:11:24 +00:00
importDefault(1900).setUserId(id);
const obj2 = importDefault(1900);
2026-07-20 16:05:17 +00:00
} else {
const DCDAppDatabase = NativeModules.DCDAppDatabase;
DCDAppDatabase.setUserId(id);
}
};