1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-17 08:43:21 +00:00

cli response objects

This commit is contained in:
Kyle Spearrin
2018-05-14 14:54:19 -04:00
parent 3dd38cbe12
commit 4f3f84539d
13 changed files with 203 additions and 58 deletions

View 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;
}
}