예제 #1
0
    def list(self, job_part_ids: List[int]) -> List[models.Job]:
        """Get the jobs data.

        :param job_part_ids: IDs of job_part for the jobs.
        :return: The got jobs.
        """
        response = self._get('job/list', {
            'jobPart': job_part_ids,
        })

        return [models.Job(i) for i in response]
예제 #2
0
    def get(self, job_part_id: int) -> models.Job:
        """Get the job data.

        :param job_part_ids: ID of job_part for the job.
        :return: The got job.
        """
        response = self._get('job/get', {
            'jobPart': job_part_id,
        })

        return models.Job(response)