mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
21 lines
501 B
TypeScript
21 lines
501 B
TypeScript
import { DeviceType } from '../../enums/deviceType';
|
|
|
|
class DeviceResponse {
|
|
id: string;
|
|
name: number;
|
|
identifier: string;
|
|
type: DeviceType;
|
|
creationDate: string;
|
|
|
|
constructor(response: any) {
|
|
this.id = response.Id;
|
|
this.name = response.Name;
|
|
this.identifier = response.Identifier;
|
|
this.type = response.Type;
|
|
this.creationDate = response.CreationDate;
|
|
}
|
|
}
|
|
|
|
export { DeviceResponse };
|
|
(window as any).DeviceResponse = DeviceResponse;
|