export class News { private title : string ; private description : string ; private picUrl : string ; private url : string ; public static getInstantiationNews ( title , description , picUrl , url ) { let news = new News ( ) ; news . title = title ; news . description = description ; news . picUrl = picUrl ; news . url = url ; return news ; } public get getTitle ( ) : string { return this . title ; } public set setTitle ( title ) { this . title = title ; } public get getDescription ( ) : string { return this . description ; } public set setDescription ( description ) { this . description = description ; } public get getPicUrl ( ) : string { return this . picUrl ; } public set setPicUrl ( picUrl ) { this . picUrl = picUrl ; } public get getUrl ( ) : string { return this . url ; } public set setUrl ( url ) { this . url = url ; } }