/// <summary> /// List all labels for a check. /// </summary> /// <param name="checkId">ID of the check</param> /// <returns>a list of all labels for a check</returns> public async Task <List <Label> > GetLabelsAsync(string checkId) { Arguments.CheckNonEmptyString(checkId, nameof(checkId)); var labels = await _service.GetChecksIDLabelsAsync(checkId).ConfigureAwait(false); return(labels.Labels); }
/// <summary> /// List all labels for a check. /// </summary> /// <param name="checkId">ID of the check</param> /// <returns>a list of all labels for a check</returns> public async Task <List <Label> > GetLabelsAsync(string checkId) { Arguments.CheckNonEmptyString(checkId, nameof(checkId)); return((await _service.GetChecksIDLabelsAsync(checkId)).Labels); }
/// <summary> /// List all labels for a check. /// </summary> /// <param name="checkId">ID of the check</param> /// <returns>a list of all labels for a check</returns> public async Task <List <Label> > GetLabelsAsync(string checkId) { Arguments.CheckNonEmptyString(checkId, nameof(checkId)); return(await _service.GetChecksIDLabelsAsync(checkId).ContinueWith(t => t.Result.Labels)); }