mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
restructure attachment commands
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
import { AttachmentView } from 'jslib/models/view/attachmentView';
|
||||
|
||||
import { Attachment } from '../attachment';
|
||||
|
||||
export class AttachmentResponse extends Attachment {
|
||||
export class AttachmentResponse {
|
||||
id: string;
|
||||
fileName: string;
|
||||
size: number;
|
||||
sizeName: string;
|
||||
url: string;
|
||||
|
||||
constructor(o: AttachmentView) {
|
||||
super();
|
||||
this.id = o.id;
|
||||
this.build(o);
|
||||
this.fileName = o.fileName;
|
||||
this.size = o.size;
|
||||
this.sizeName = o.sizeName;
|
||||
this.url = o.url;
|
||||
|
||||
Reference in New Issue
Block a user