1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-06 04:23:19 +00:00

refactor req/res models

This commit is contained in:
Kyle Spearrin
2018-05-15 12:18:47 -04:00
parent 1d3ed93bff
commit 07cc64c0b8
25 changed files with 363 additions and 229 deletions

View File

@@ -2,13 +2,15 @@ import { FolderView } from 'jslib/models/view/folderView';
import { BaseResponse } from './baseResponse';
export class FolderResponse extends BaseResponse {
import { Folder } from '../folder';
export class FolderResponse extends Folder implements BaseResponse {
object: string;
id: string;
name: string;
constructor(o: FolderView) {
super('folder');
super(o);
this.object = 'folder';
this.id = o.id;
this.name = o.name;
}
}