mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
20 lines
554 B
TypeScript
20 lines
554 B
TypeScript
import { BrowserType } from '../../enums/browserType.enum';
|
|
import { UtilsService } from '../../services/abstractions/utils.service';
|
|
|
|
class DeviceRequest {
|
|
type: BrowserType;
|
|
name: string;
|
|
identifier: string;
|
|
pushToken?: string;
|
|
|
|
constructor(appId: string, utilsService: UtilsService) {
|
|
this.type = utilsService.getBrowser();
|
|
this.name = utilsService.getBrowserString();
|
|
this.identifier = appId;
|
|
this.pushToken = null;
|
|
}
|
|
}
|
|
|
|
export { DeviceRequest };
|
|
(window as any).DeviceRequest = DeviceRequest;
|