api.basecamp
Class Categories

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

public class Categories
extends java.lang.Object

Collection of BaseCamp Category Objects

Author:
jondavidjohn

Constructor Summary
Categories(BCAuth auth, int projectId)
          Get All Categories for a project
Categories(BCAuth auth, int projectId, boolean type)
          Get All Categories for a project with Type option
 
Method Summary
 java.util.List<Category> getCategories()
           
 Category getCategory(int index)
           
 int getCategoryCount()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Categories

public Categories(BCAuth auth,
                  int projectId)
Get All Categories for a project

Parameters:
auth - BCAuth
projectId - ID of Project

Categories

public Categories(BCAuth auth,
                  int projectId,
                  boolean type)
Get All Categories for a project with Type option

Parameters:
auth - BCAuth
projectId - ID of Project
type - [ Category.POST || Category.ATTACH ]
Method Detail

getCategoryCount

public int getCategoryCount()
Returns:
Count of Category Objects

getCategories

public java.util.List<Category> getCategories()
Returns:
List of Project Objects

getCategory

public Category getCategory(int index)
Parameters:
index - index of Category Object
Returns:
List of Category Objects