Class Resource

java.lang.Object
net.amcintosh.freshbooks.resources.api.Resource
Direct Known Subclasses:
AccountingResource, AuthResource, ProjectResource

public abstract class Resource extends Object
Base class for API resources.
  • Field Details

  • Constructor Details

    • Resource

      public Resource(FreshBooksClient freshBooksClient)
      Parameters:
      freshBooksClient - Initialized instance of FreshBooksClient
  • Method Details

    • getResourceType

      protected abstract ResourceType getResourceType()
    • buildQueryString

      protected String buildQueryString(List<QueryBuilder> builders)
      Construct the http call query string from the List of QueryBuilders provided.
      Parameters:
      builders - List of QueryBuilders
      Returns: