Class SurveysScreenerChildrenConditionsClient
public class SurveysScreenerChildrenConditionsClient
- Inheritance
-
SurveysScreenerChildrenConditionsClient
- Inherited Members
Constructors
SurveysScreenerChildrenConditionsClient(string, HttpClient)
public SurveysScreenerChildrenConditionsClient(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
CreateScreenerChildConditionAsync(string, string, ScreenerCreateChildConditionModel, CancellationToken)
Creates a new screener child condition
public virtual Task<ScreenerChildConditionModel> CreateScreenerChildConditionAsync(string screenerId, string childId, ScreenerCreateChildConditionModel screenerChildCondition, CancellationToken cancellationToken = default)
Parameters
screenerIdstringThe screener survey ID
childIdstringThe child survey ID
screenerChildConditionScreenerCreateChildConditionModelThe screener child condition to create
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<ScreenerChildConditionModel>
Created
Exceptions
- NfieldSdkException
A server side error occurred.
DeleteScreenerChildConditionAsync(string, int, CancellationToken)
Deletes an existing screener child condition
public virtual Task DeleteScreenerChildConditionAsync(string screenerId, int conditionId, CancellationToken cancellationToken = default)
Parameters
screenerIdstringThe screener survey ID
conditionIdintThe screener child condition ID
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task
No Content
Exceptions
- NfieldSdkException
A server side error occurred.
GetScreenerChildrenConditionsAsync(string, CancellationToken)
Gets screener children conditions
public virtual Task<ICollection<ScreenerChildConditionModel>> GetScreenerChildrenConditionsAsync(string screenerId, CancellationToken cancellationToken = default)
Parameters
screenerIdstringThe screener survey ID
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<ICollection<ScreenerChildConditionModel>>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<SurveysScreenerChildrenConditionsClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T
UpdateScreenerChildConditionsAsync(string, IEnumerable<ScreenerChildConditionModel>, CancellationToken)
Updates existing screener children conditions
public virtual Task<ICollection<ScreenerChildConditionModel>> UpdateScreenerChildConditionsAsync(string screenerId, IEnumerable<ScreenerChildConditionModel> screenerChildConditions, CancellationToken cancellationToken = default)
Parameters
screenerIdstringThe screener survey ID
screenerChildConditionsIEnumerable<ScreenerChildConditionModel>The screener child conditions to update
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<ICollection<ScreenerChildConditionModel>>
Updated
Exceptions
- NfieldSdkException
A server side error occurred.