1
0
mirror of https://github.com/bitwarden/directory-connector synced 2026-01-09 20:13:20 +00:00
Files
directory-connector/jslib/common/src/models/response/deviceResponse.ts
2022-04-28 16:41:07 +02:00

21 lines
582 B
TypeScript

import { DeviceType } from "../../enums/deviceType";
import { BaseResponse } from "./baseResponse";
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");
}
}