Class ProjectResource
java.lang.Object
net.amcintosh.freshbooks.resources.api.Resource
net.amcintosh.freshbooks.resources.api.ProjectResource
- Direct Known Subclasses:
CommentResource,CommentSubResource,Projects,TimeTrackingResource
Handles resources under the '
/project' and project-like endpoints.-
Field Summary
Fields inherited from class net.amcintosh.freshbooks.resources.api.Resource
freshBooksClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Stringprotected abstract Stringprotected ResourceTypeprotected StringgetUrl(long businessId, boolean isList) protected StringgetUrl(long businessId, boolean isList, List<QueryBuilder> builders) protected StringgetUrl(long businessId, long resourceId) protected StringgetUrl(long businessId, long resourceId, IncludesQueryBuilder builder) protected ProjectListResponsehandleListRequest(String url) protected ProjectResponsehandleRequest(String method, String url) protected ProjectResponseMethods inherited from class net.amcintosh.freshbooks.resources.api.Resource
buildQueryString
-
Constructor Details
-
ProjectResource
- Parameters:
freshBooksClient- Initialized instance of FreshBooksClient
-
-
Method Details
-
getResourceType
- Specified by:
getResourceTypein classResource
-
getPathForSingle
-
getPathForList
-
getUrl
-
getUrl
-
getUrl
-
getUrl
-
handleRequest
- Throws:
FreshBooksException
-
handleRequest
protected ProjectResponse handleRequest(String method, String url, Map<String, Object> content) throws FreshBooksException- Throws:
FreshBooksException
-
handleListRequest
- Throws:
FreshBooksException
-