mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
17 lines
488 B
TypeScript
17 lines
488 B
TypeScript
import { PlatformUtilsService } from "../../abstractions/platformUtils.service";
|
|
import { DeviceType } from "../../enums/deviceType";
|
|
|
|
export 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;
|
|
}
|
|
}
|