2018-01-24 17:33:15 +01:00
|
|
|
import { View } from './view';
|
|
|
|
|
2018-02-19 18:33:32 +01:00
|
|
|
import { Attachment } from '../domain';
|
2018-01-24 17:33:15 +01:00
|
|
|
|
|
|
|
export class AttachmentView implements View {
|
|
|
|
id: string;
|
|
|
|
url: string;
|
|
|
|
size: number;
|
|
|
|
sizeName: string;
|
|
|
|
fileName: string;
|
|
|
|
|
|
|
|
constructor(a: Attachment) {
|
|
|
|
this.id = a.id;
|
|
|
|
this.url = a.url;
|
|
|
|
this.size = a.size;
|
|
|
|
this.sizeName = a.sizeName;
|
|
|
|
}
|
|
|
|
}
|