mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-27 04:03:00 +02:00
23 lines
727 B
TypeScript
23 lines
727 B
TypeScript
|
import { BaseResponse } from "@bitwarden/common/models/response/base.response";
|
||
|
|
||
|
export class SecretResponse extends BaseResponse {
|
||
|
id: string;
|
||
|
organizationId: string;
|
||
|
name: string;
|
||
|
value: string;
|
||
|
note: string;
|
||
|
creationDate: string;
|
||
|
revisionDate: string;
|
||
|
|
||
|
constructor(response: any) {
|
||
|
super(response);
|
||
|
this.id = this.getResponseProperty("Id");
|
||
|
this.organizationId = this.getResponseProperty("OrganizationId");
|
||
|
this.name = this.getResponseProperty("Key");
|
||
|
this.value = this.getResponseProperty("Value");
|
||
|
this.note = this.getResponseProperty("Note");
|
||
|
this.creationDate = this.getResponseProperty("CreationDate");
|
||
|
this.revisionDate = this.getResponseProperty("RevisionDate");
|
||
|
}
|
||
|
}
|