Class DataService

    • Constructor Detail

      • DataService

        public DataService()
    • Method Detail

      • getAllJobs

        public abstract Collection<Jobs> getAllJobs()
        Returns a list of jobs from the CSV file.
        Returns:
        List of Jobs objects
      • getJobsbyId

        public abstract Jobs getJobsbyId​(int jobId)
        Return a Jobs object from the CSV file given an id.
        Parameters:
        jobId - id of the Jobs object you are searching for
        Returns:
        the Jobs object with the given id
      • get

        public static DataService get()
        Return an instance of MockDataService.
        Returns:
        instance of MockDataService
      • getJob

        public static DataService getJob()
        Returns a JobDataService object
        Returns:
        JobDataService object
      • getSearchResults

        public static DataService getSearchResults​(String keywords)
        Returns a ApplicationSearchDataService object
        Parameters:
        keywords - limits the search for API calls
        Returns:
        ApplicationSearchDataService object