Class SurveysScreenerChildrenClient
public class SurveysScreenerChildrenClient
- Inheritance
-
SurveysScreenerChildrenClient
- Inherited Members
Constructors
SurveysScreenerChildrenClient(string, HttpClient)
public SurveysScreenerChildrenClient(string baseUrl, HttpClient httpClient)
Parameters
baseUrlstringhttpClientHttpClient
Properties
BaseUrl
public string BaseUrl { get; set; }
Property Value
JsonSerializerSettings
protected JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
- JsonSerializerSettings
ReadResponseAsString
public bool ReadResponseAsString { get; set; }
Property Value
Methods
CreateScreenerChildAsync(string, ScreenerChildCreateRequestModel, CancellationToken)
Create a new screener child survey belonging to the provided screener survey.
public virtual Task<SurveyModel> CreateScreenerChildAsync(string screenerId, ScreenerChildCreateRequestModel newChild, CancellationToken cancellationToken = default)
Parameters
screenerIdstringThe screener survey id
newChildScreenerChildCreateRequestModelA model describing the details for the new screener child survey
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<SurveyModel>
Created
Exceptions
- NfieldSdkException
A server side error occurred.
GetScreenerChildrenAsync(string, CancellationToken)
This method retrieves a list of children belonging to the provided screener survey. This list can be filtered and sorted
using standard OData syntax.
public virtual Task<ICollection<SurveyModel>> GetScreenerChildrenAsync(string screenerId, CancellationToken cancellationToken = default)
Parameters
screenerIdstringThe survey id of the screener survey
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<ICollection<SurveyModel>>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<SurveysScreenerChildrenClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T