Class SurveysQuotaTargetsClient
public class SurveysQuotaTargetsClient
- Inheritance
-
SurveysQuotaTargetsClient
- Inherited Members
Constructors
SurveysQuotaTargetsClient(string, HttpClient)
public SurveysQuotaTargetsClient(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)
This method retrieves a Full QuotaFrame structure based on survey
The successful counts are not retrieved
public virtual Task<SurveysQuotaFrameResponseModel> GetAsync(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<SurveysQuotaFrameResponseModel>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
GetEtagV2Async(string, long, CancellationToken)
This method retrieves a Full QuotaFrame structure based on survey.
The successful counts are also retrieved
public virtual Task<SurveysQuotaFrameEtagResponseModel> GetEtagV2Async(string surveyId, long eTag, CancellationToken cancellationToken = default)
Parameters
surveyIdstringThe id of the survey
eTaglongThe ETag version of the quota
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<SurveysQuotaFrameEtagResponseModel>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<SurveysQuotaTargetsClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T