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

39 lines
1,014 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 1900
2026-07-28 08:39:19 +00:00
// Function ID: 21356
2026-07-20 16:05:17 +00:00
// Name: getUserId
2026-07-25 08:10:48 +00:00
// Dependencies: [27, 477, 1901, 2]
2026-07-20 16:05:17 +00:00
// Exports: getUserId, setUserId
2026-07-25 08:10:48 +00:00
// Module 1900 (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-25 08:10:48 +00:00
const userId2 = importDefault(1901).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-25 08:10:48 +00:00
importDefault(1901).setUserId(id);
const obj2 = importDefault(1901);
2026-07-20 16:05:17 +00:00
} else {
const DCDAppDatabase = NativeModules.DCDAppDatabase;
DCDAppDatabase.setUserId(id);
}
};