mirror of
https://github.com/bitwarden/clients.git
synced 2026-06-22 21:02:34 +08:00
20 lines
597 B
TypeScript
20 lines
597 B
TypeScript
import { DeviceType } from '../../enums/deviceType.enum';
|
|
import { PlatformUtilsService } from '../../services/abstractions/platformUtils.service';
|
|
|
|
class DeviceRequest {
|
|
type: DeviceType;
|
|
name: string;
|
|
identifier: string;
|
|
pushToken?: string;
|
|
|
|
constructor(appId: string, platformUtilsService: PlatformUtilsService) {
|
|
this.type = platformUtilsService.getDevice();
|
|
this.name = platformUtilsService.getDeviceString();
|
|
this.identifier = appId;
|
|
this.pushToken = null;
|
|
}
|
|
}
|
|
|
|
export { DeviceRequest };
|
|
(window as any).DeviceRequest = DeviceRequest;
|