export class NewsItem { public header = '' ; public newsText = '' ; public author = '' ; public newsGroup = '' ; constructor ( ) { } AddData ( header , newsText , author , newsGroup ) { this . header = header ; this . newsText = newsText ; this . author = author ; this . newsGroup = newsGroup ; } }