model
Class News

java.lang.Object
  extended by model.News

public class News
extends java.lang.Object

Repräsentiert News-Beitrag.

Author:
Björn Dassow

Constructor Summary
News(java.lang.String text)
           
News(java.lang.String text, java.lang.String id, java.lang.String timestamp)
          Creates a new instance of News
 
Method Summary
 java.lang.String getId()
           
 java.lang.String getText()
           
 java.lang.String getTimestamp()
           
 void setId(java.lang.String id)
           
 void setText(java.lang.String text)
           
 void setTimestamp(java.lang.String timestamp)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

News

public News(java.lang.String text,
            java.lang.String id,
            java.lang.String timestamp)
Creates a new instance of News


News

public News(java.lang.String text)
Method Detail

setTimestamp

public void setTimestamp(java.lang.String timestamp)

setText

public void setText(java.lang.String text)

setId

public void setId(java.lang.String id)

getTimestamp

public java.lang.String getTimestamp()

getText

public java.lang.String getText()

getId

public java.lang.String getId()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object