Class SurveysPerformanceClient
public class SurveysPerformanceClient
- Inheritance
-
SurveysPerformanceClient
- Inherited Members
Constructors
SurveysPerformanceClient(string, HttpClient)
public SurveysPerformanceClient(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
GetLiveSurveyMetricsAsync(string, CancellationToken)
Get the survey performance metrics for live interviews
public virtual Task<SurveyMetrics> GetLiveSurveyMetricsAsync(string surveyId, CancellationToken cancellationToken = default)
Parameters
surveyIdstringThe id of the survey
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<SurveyMetrics>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
GetTestSurveyMetricsV2Async(string, CancellationToken)
Get the survey performance metrics for test interviews
public virtual Task<SurveyMetrics> GetTestSurveyMetricsV2Async(string surveyId, CancellationToken cancellationToken = default)
Parameters
surveyIdstringThe id of the survey
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<SurveyMetrics>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<SurveysPerformanceClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T