com.evdb.javaapi.data
Class Comment

java.lang.Object
  extended by com.evdb.javaapi.data.Comment

public class Comment
extends java.lang.Object

Comment Object

Author:
tylerv

Constructor Summary
Comment()
          Create a new comment
Comment(java.lang.String text)
          Create a comment with the given text
 
Method Summary
 int getId()
          Return comment ID
 java.lang.String getText()
          Return comment text
 java.util.Date getTime()
          Get the time the comment was made
 java.lang.String getUsername()
          Username that made the comment
 void setId(int id)
          Set comment ID
 void setText(java.lang.String text)
          Set comment text
 void setTime(java.util.Date time)
          Set the comment time
 void setUsername(java.lang.String username)
          Set the name of the user making the comment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment()
Create a new comment


Comment

public Comment(java.lang.String text)
Create a comment with the given text

Parameters:
text -
Method Detail

getId

public int getId()
Return comment ID

Returns:
the id

setId

public void setId(int id)
Set comment ID

Parameters:
id - the id to set

getText

public java.lang.String getText()
Return comment text

Returns:
the text

setText

public void setText(java.lang.String text)
Set comment text

Parameters:
text - the text to set

getTime

public java.util.Date getTime()
Get the time the comment was made

Returns:
the time

setTime

public void setTime(java.util.Date time)
Set the comment time

Parameters:
time - the time to set

getUsername

public java.lang.String getUsername()
Username that made the comment

Returns:
the username

setUsername

public void setUsername(java.lang.String username)
Set the name of the user making the comment

Parameters:
username - the username to set


Copyright © 2007 Eventful Inc. All Rights Reserved.