mirror of
https://github.com/bitwarden/cli
synced 2025-12-17 08:43:21 +00:00
cli response objects
This commit is contained in:
22
src/models/response/cipherResponse.ts
Normal file
22
src/models/response/cipherResponse.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { CipherView } from 'jslib/models/view/cipherView';
|
||||
|
||||
import { BaseResponse } from './baseResponse';
|
||||
|
||||
import { CipherType } from 'jslib/enums';
|
||||
|
||||
export class CipherResponse extends BaseResponse {
|
||||
id: string;
|
||||
organizationId: string;
|
||||
type: CipherType;
|
||||
name: string;
|
||||
notes: string;
|
||||
|
||||
constructor(o: CipherView) {
|
||||
super('item');
|
||||
this.id = o.id;
|
||||
this.organizationId = o.organizationId;
|
||||
this.type = o.type;
|
||||
this.name = o.name;
|
||||
this.notes = o.notes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user