export class SharedModel { public id : string ; public trackId : string ; public sharedBy : string ; public name : string ; public artist : string ; public remoteFilePath : string ; public playing : boolean = false ; public order : number ; public type : string ; constructor ( model ) { if ( model ) { for ( let key in model ) { this [ key ] = model [ key ] ; } if ( ! this . order ) { this . order = 0 ; } } this . type = 'shared' ; } }