1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-22 21:21:35 +01:00

PM-1049 - Update DeviceResponse to match latest properties on backend

This commit is contained in:
Jared Snider 2023-05-10 15:56:07 -04:00
parent 897fc82e2b
commit 59a8dee993
No known key found for this signature in database
GPG Key ID: A149DDD612516286

View File

@ -3,17 +3,21 @@ import { BaseResponse } from "../../../models/response/base.response";
export class DeviceResponse extends BaseResponse {
id: string;
userId: string;
name: number;
identifier: string;
type: DeviceType;
creationDate: string;
revisionDate: string;
constructor(response: any) {
super(response);
this.id = this.getResponseProperty("Id");
this.userId = this.getResponseProperty("UserId");
this.name = this.getResponseProperty("Name");
this.identifier = this.getResponseProperty("Identifier");
this.type = this.getResponseProperty("Type");
this.creationDate = this.getResponseProperty("CreationDate");
this.revisionDate = this.getResponseProperty("RevisionDate");
}
}