/// <summary> /// List all labels of a ScraperTarget. /// </summary> /// <param name="scraperTargetId">ID of a ScraperTarget to get labels</param> /// <returns>the List all labels of a ScraperTarget</returns> public async Task <List <Label> > GetLabelsAsync(string scraperTargetId) { Arguments.CheckNonEmptyString(scraperTargetId, nameof(scraperTargetId)); var response = await _service.GetScrapersIDLabelsAsync(scraperTargetId).ConfigureAwait(false); return(response.Labels); }
/// <summary> /// List all labels of a ScraperTarget. /// </summary> /// <param name="scraperTargetId">ID of a ScraperTarget to get labels</param> /// <returns>the List all labels of a ScraperTarget</returns> public async Task <List <Label> > GetLabels(string scraperTargetId) { Arguments.CheckNonEmptyString(scraperTargetId, nameof(scraperTargetId)); return(await _service.GetScrapersIDLabelsAsync(scraperTargetId).ContinueWith(t => t.Result.Labels)); }
/// <summary> /// List all labels of a ScraperTarget. /// </summary> /// <param name="scraperTargetId">ID of a ScraperTarget to get labels</param> /// <returns>the List all labels of a ScraperTarget</returns> public async Task <List <Label> > GetLabelsAsync(string scraperTargetId) { Arguments.CheckNonEmptyString(scraperTargetId, nameof(scraperTargetId)); return((await _service.GetScrapersIDLabelsAsync(scraperTargetId)).Labels); }