mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
typescript models
This commit is contained in:
16
src/models/request/deviceRequest.ts
Normal file
16
src/models/request/deviceRequest.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
class DeviceRequest {
|
||||
type: number; // TODO: enum
|
||||
name: string;
|
||||
identifier: string;
|
||||
pushToken?: string;
|
||||
|
||||
constructor(appId: string, utilsService: any) { // TODO: utils service type
|
||||
this.type = utilsService.getDeviceType();
|
||||
this.name = utilsService.getBrowser();
|
||||
this.identifier = appId;
|
||||
this.pushToken = null;
|
||||
}
|
||||
}
|
||||
|
||||
export { DeviceRequest };
|
||||
(window as any).DeviceRequest = DeviceRequest;
|
||||
Reference in New Issue
Block a user