1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00
Files
browser/src/models/response/deviceResponse.ts
2019-03-01 00:13:37 -05:00

21 lines
620 B
TypeScript

import { BaseResponse } from './baseResponse';
import { DeviceType } from '../../enums/deviceType';
export class DeviceResponse extends BaseResponse {
id: string;
name: number;
identifier: string;
type: DeviceType;
creationDate: string;
constructor(response: any) {
super(response);
this.id = this.getResponseProperty('Id');
this.name = this.getResponseProperty('Name');
this.identifier = this.getResponseProperty('Identifier');
this.type = this.getResponseProperty('Type');
this.creationDate = this.getResponseProperty('CreationDate');
}
}