mirror of
https://github.com/bitwarden/cli
synced 2025-12-20 10:13:13 +00:00
get items attachment command
This commit is contained in:
19
src/models/response/attachmentResponse.ts
Normal file
19
src/models/response/attachmentResponse.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { AttachmentView } from 'jslib/models/view/attachmentView';
|
||||
|
||||
import { Attachment } from '../attachment';
|
||||
|
||||
export class AttachmentResponse extends Attachment {
|
||||
id: string;
|
||||
size: number;
|
||||
sizeName: string;
|
||||
url: string;
|
||||
|
||||
constructor(o: AttachmentView) {
|
||||
super();
|
||||
this.id = o.id;
|
||||
this.build(o);
|
||||
this.size = o.size;
|
||||
this.sizeName = o.sizeName;
|
||||
this.url = o.url;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user