Class SurveysInterviewInteractionsSettingsClient
public class SurveysInterviewInteractionsSettingsClient
- Inheritance
-
SurveysInterviewInteractionsSettingsClient
- Inherited Members
Constructors
SurveysInterviewInteractionsSettingsClient(string, HttpClient)
public SurveysInterviewInteractionsSettingsClient(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
GetAsync(string, CancellationToken)
Get interview interactions settings for the survey.
public virtual Task<SurveyInterviewInteractionsSettingsResponseModel> GetAsync(string surveyId, CancellationToken cancellationToken = default)
Parameters
surveyIdstringid of the survey
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<SurveyInterviewInteractionsSettingsResponseModel>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
PatchAsync(string, SurveyInterviewInteractionsSettingsRequestModel, CancellationToken)
Update interview interactions settings for the survey.
public virtual Task<SurveyInterviewInteractionsSettingsResponseModel> PatchAsync(string surveyId, SurveyInterviewInteractionsSettingsRequestModel surveyInterviewInteractionsSettings, CancellationToken cancellationToken = default)
Parameters
surveyIdstringid of the survey
surveyInterviewInteractionsSettingsSurveyInterviewInteractionsSettingsRequestModelnew interview settings
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<SurveyInterviewInteractionsSettingsResponseModel>
Interactions updated
Exceptions
- NfieldSdkException
A server side error occurred.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<SurveysInterviewInteractionsSettingsClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T