mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
[SM-288] Rename requests and responses to follow naming convention (#3806)
This commit is contained in:
16
libs/common/src/models/request/device.request.ts
Normal file
16
libs/common/src/models/request/device.request.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user