import { APP } from '../app/app' ; import PlayerModel from './player' ; export default class Episode extends PlayerModel { name : string ; description : string ; constructor ( id , title , listening , image , time , name , description ) { super ( id , title , listening , image , time ) ; this . name = name ; this . description = description ; this . trayMessage = `${ this . name } • ${ this . title }` ; this . notification = `${ this . title }\n${ this . name }` ; } getId ( ) { return `EPISODE_${ this . id }` ; } getState ( ) { return this . name ; } getStartTimestamp ( ) { return undefined ; } getEndTimestamp ( ) { return this . time ; } getImageText ( ) { return APP . name ; } getButtons ( ) { return [ { label : 'Play on Deezer' , url : `https://www.deezer.com/episode/${ this . id }` } ] ; } }