1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

rename browserType to deviceType

This commit is contained in:
Kyle Spearrin
2018-01-05 11:13:24 -05:00
parent 2ef937f333
commit 01cf48bbed
8 changed files with 59 additions and 52 deletions

View File

@@ -1,15 +1,15 @@
import { BrowserType } from '../../enums/browserType.enum';
import { DeviceType } from '../../enums/deviceType.enum';
import { BrowserUtilsService } from '../../services/abstractions/browserUtils.service';
class DeviceRequest {
type: BrowserType;
type: DeviceType;
name: string;
identifier: string;
pushToken?: string;
constructor(appId: string, browserUtilsService: BrowserUtilsService) {
this.type = browserUtilsService.getBrowser();
this.name = browserUtilsService.getBrowserString();
this.type = browserUtilsService.getDevice();
this.name = browserUtilsService.getDeviceString();
this.identifier = appId;
this.pushToken = null;
}

View File

@@ -1,10 +1,10 @@
import { BrowserType } from '../../enums/browserType.enum';
import { DeviceType } from '../../enums/deviceType.enum';
class DeviceResponse {
id: string;
name: number;
identifier: string;
type: BrowserType;
type: DeviceType;
creationDate: string;
constructor(response: any) {