Class SurveysInterviewQualityClient
public class SurveysInterviewQualityClient
- Inheritance
-
SurveysInterviewQualityClient
- Inherited Members
Constructors
SurveysInterviewQualityClient(string, HttpClient)
public SurveysInterviewQualityClient(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
GetAllAsync(string, CancellationToken)
This method retrieves the interview details list defined for the survey with the specified surveyId surveyId.
This list can be filtered and sorted using standard OData syntax.
public virtual Task<ICollection<InterviewDetailsModel>> GetAllAsync(string surveyId, CancellationToken cancellationToken = default)
Parameters
surveyIdstringThe survey id
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<ICollection<InterviewDetailsModel>>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
GetAsync(string, string, CancellationToken)
This method retrieves a specific interview detail defined for the survey with the specified surveyId
and interviewId.
public virtual Task<InterviewDetailsModel> GetAsync(string surveyId, string interviewId, CancellationToken cancellationToken = default)
Parameters
surveyIdstringThe survey id
interviewIdstringThe interview Id
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<InterviewDetailsModel>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
PutAsync(string, QualityNewStateChangeModel, CancellationToken)
Update the quality state of an existing interview.
public virtual Task<InterviewDetails> PutAsync(string surveyId, QualityNewStateChangeModel stateChange, CancellationToken cancellationToken = default)
Parameters
surveyIdstringThe survey Id of the interview is defined for
stateChangeQualityNewStateChangeModelThe updated quality state
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<InterviewDetails>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<SurveysInterviewQualityClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T