public async Task <JobStatus> GetJobStatusAsync(JobId id) { var request = new JobPollRequest() { JobId = id.Id }; var result = await Post <JobPollResponse>("/poll", request); return(result.JobStatus); }
public async Task <JobFetchResponse> FetchResultAsync(JobId id) { var request = new JobFetchRequest() { JobId = id.Id }; var result = await Post <JobFetchResponse>("/fetch", request); return(result); }
public Task <JobFetchResponse> TryFetchResultAsync(JobId id) { throw new NotImplementedException(); }