api.basecamp
Class Comments

java.lang.Object
  extended by api.basecamp.Comments

public class Comments
extends java.lang.Object

Collection of BaseCamp Comment Objects

Author:
jondavidjohn

Constructor Summary
Comments(BCAuth auth, java.lang.String resourceType, int resourceId)
          Get All Comments for given resource (up to 50)
 
Method Summary
 Comment getComment(int index)
          Get comment according to index
 int getCommentCount()
           
 java.util.List<Comment> getComments()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comments

public Comments(BCAuth auth,
                java.lang.String resourceType,
                int resourceId)
Get All Comments for given resource (up to 50)

Parameters:
auth - BCAuth
resourceType - String type of resource example... "posts" , "milestones" , "todo_items"
resourceId - int id of resource
Method Detail

getComments

public java.util.List<Comment> getComments()
Returns:
List collection of Comment objects

getComment

public Comment getComment(int index)
Get comment according to index

Parameters:
index - index of Comment
Returns:
Comment

getCommentCount

public int getCommentCount()
Returns:
count of Comments in collection