Class SurveysParentSurveysWavesClient
public class SurveysParentSurveysWavesClient
- Inheritance
-
SurveysParentSurveysWavesClient
- Inherited Members
Constructors
SurveysParentSurveysWavesClient(string, HttpClient)
public SurveysParentSurveysWavesClient(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
GetParentSurveyWavesAsync(string, CancellationToken)
This method retrieves a list of waves belonging to the provided parent survey. This list can be filtered and sorted
using standard OData syntax.
Parent surveys and waves are a logical nested organization of surveys
public virtual Task<ICollection<SurveyModel>> GetParentSurveyWavesAsync(string parentSurveyId, CancellationToken cancellationToken = default)
Parameters
parentSurveyIdstringThe survey id of the parent 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.
PostAsync(string, ParentSurveyWaveCreateRequestModel, CancellationToken)
Create new ONLINE wave survey belonging to the provided parent survey.
Parent surveys and waves are a logical nested organization of surveys
public virtual Task<SurveyModel> PostAsync(string parentSurveyId, ParentSurveyWaveCreateRequestModel newSurvey, CancellationToken cancellationToken = default)
Parameters
parentSurveyIdstringThe parent survey id
newSurveyParentSurveyWaveCreateRequestModelAn object describing the details for the new 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.
PostCopyWaveAsync(string, string, ParentSurveyWaveCopyRequestModel, CancellationToken)
Creates a new ONLINE wave survey and copies artifact from existing wave.
public virtual Task<SurveyModel> PostCopyWaveAsync(string parentSurveyId, string waveId, ParentSurveyWaveCopyRequestModel newSurvey, CancellationToken cancellationToken = default)
Parameters
parentSurveyIdstringThe parent survey id
waveIdstringThe unique id of the survey (Guid) to be copy. The Survey Id must be a wave (Has a parent Survey)
newSurveyParentSurveyWaveCopyRequestModelAn object describing the details for the new 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.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<SurveysParentSurveysWavesClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T