mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 10:13:31 +00:00
Adds a device management tab under settings -> security that allows users to: - View and manage their account's connected devices - Remove/deactivate devices - See device details like platform, last login, and trust status - Sort and filter device list with virtual scrolling Resolves PM-1214
28 lines
1010 B
TypeScript
28 lines
1010 B
TypeScript
import { DeviceType } from "../../../../enums";
|
|
import { BaseResponse } from "../../../../models/response/base.response";
|
|
|
|
export class DeviceResponse extends BaseResponse {
|
|
id: string;
|
|
userId: string;
|
|
name: string;
|
|
identifier: string;
|
|
type: DeviceType;
|
|
creationDate: string;
|
|
revisionDate: string;
|
|
isTrusted: boolean;
|
|
devicePendingAuthRequest: { id: string; creationDate: string } | null;
|
|
|
|
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");
|
|
this.isTrusted = this.getResponseProperty("IsTrusted");
|
|
this.devicePendingAuthRequest = this.getResponseProperty("DevicePendingAuthRequest");
|
|
}
|
|
}
|