export class Notification { public id : number ; public name : string ; public description : string ; public state : string ; public icon : string ; public when : string ; constructor ( name , description ) { this . name = name ; this . description = description ; } setState ( state ) { this . state = state ; } getState ( ) { return this . state ; } setIcon ( icon ) { this . icon = icon ; } getIcon ( ) { return this . icon ; } setWhen ( when ) { this . when = when ; } getWhen ( ) { return this . when ; } }