mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
18 lines
517 B
TypeScript
18 lines
517 B
TypeScript
import { DeviceType } from '../../enums/deviceType';
|
|
|
|
import { PlatformUtilsService } from '../../abstractions/platformUtils.service';
|
|
|
|
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;
|
|
}
|
|
}
|