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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
protected abstract String
protected ResourceType
protected String
getUrl
(long businessId, boolean isList) protected String
getUrl
(long businessId, boolean isList, List<QueryBuilder> builders) protected String
getUrl
(long businessId, long resourceId) protected String
getUrl
(long businessId, long resourceId, IncludesQueryBuilder builder) protected ProjectListResponse
handleListRequest
(String url) protected ProjectResponse
handleRequest
(String method, String url) protected ProjectResponse
Methods inherited from class net.amcintosh.freshbooks.resources.api.Resource
buildQueryString
-
Constructor Details
-
ProjectResource
- Parameters:
freshBooksClient
- Initialized instance of FreshBooksClient
-
-
Method Details
-
getResourceType
- Specified by:
getResourceType
in 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
-