argos/dmp-frontend/src/app/models/files/ContentFile.ts

16 lines
440 B
TypeScript
Raw Normal View History

2018-05-14 08:44:35 +02:00
import { Serializable } from "../../models/Serializable";
2018-03-21 14:15:06 +01:00
export class ContentFile implements Serializable<ContentFile>{
private filename: string;
private id: string;
private location: string;
private type: string;
fromJSONObject(item: any): ContentFile {
this.filename = item.filename;
this.id = item.id;
this.location = item.location
this.type = item.type
return this;
}
}