/** * Created by jimsugg on 10/2/16. */ export enum MediaType { Video, Image, Audio } // This object is intended to be also used in a DmMediaLibrary data model export interface DmMediaObject { // Properties path : string; mediaType : MediaType; isEqual(other:DmMediaObject) : boolean; fileName() : string; isAvailable() : boolean; //isLocal() : boolean; } export class MediaObject implements DmMediaObject { path: string; mediaType: MediaType; constructor(path: string, mediaType: MediaType) { this.path = path; this.mediaType = mediaType; } isEqual(other: DmMediaObject) : boolean { return this.path === other.path && this.mediaType === other.mediaType; } fileName() { return ""; // TODO } isAvailable() { return true; // TODO } }