api.basecamp
Class TimeReport

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

public class TimeReport
extends java.lang.Object

Collection of BaseCamp TimeEntry Objects with the ability to define reports.

Author:
jondavidjohn

Constructor Summary
TimeReport(BCAuth auth, int toDoId)
          Report Containing all time entires for a given todo item
TimeReport(BCAuth auth, TimeReportSpec spec)
          Build TimeReport according to a defined TimeReportSpec Object
 
Method Summary
 java.util.List<TimeEntry> getEntries()
           
 TimeEntry getEntry(int id)
           
 int getEntryCount()
           
 java.util.List<TimeEntry> getRangeOfEntries(java.util.Calendar start, java.util.Calendar end)
          Gets a range of entries within the Report
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeReport

public TimeReport(BCAuth auth,
                  TimeReportSpec spec)
Build TimeReport according to a defined TimeReportSpec Object

Parameters:
auth - BCAuth Object
spec - Defined Specifications for Report

TimeReport

public TimeReport(BCAuth auth,
                  int toDoId)
Report Containing all time entires for a given todo item

Parameters:
auth - BCAuth Object
toDoId - ID of todo item
Method Detail

getEntries

public java.util.List<TimeEntry> getEntries()

getEntry

public TimeEntry getEntry(int id)

getEntryCount

public int getEntryCount()

getRangeOfEntries

public java.util.List<TimeEntry> getRangeOfEntries(java.util.Calendar start,
                                                   java.util.Calendar end)
Gets a range of entries within the Report

Parameters:
start - Calendar Starting Date
end - Calendar Ending Date
Returns:
List of TimeEntries within given date range