Class SurveysQuotaVersionsClient
public class SurveysQuotaVersionsClient
- Inheritance
-
SurveysQuotaVersionsClient
- Inherited Members
Constructors
SurveysQuotaVersionsClient(string, HttpClient)
public SurveysQuotaVersionsClient(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 a list of quota frame versions for the specified survey.
public virtual Task<ICollection<QuotaFrameVersionModel>> GetAllAsync(string surveyId, CancellationToken cancellationToken = default)
Parameters
surveyIdstringThe id of the survey to get the quota frame versions for
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<ICollection<QuotaFrameVersionModel>>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
GetEtagAsync(string, string, CancellationToken)
This method retrieves quota frame for the specified version.
public virtual Task<QuotaFrameModel> GetEtagAsync(string surveyId, string eTag, CancellationToken cancellationToken = default)
Parameters
surveyIdstringThe id of the survey to get the quota frame
eTagstringThe version of the quota frame to retrieve
cancellationTokenCancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
- Task<QuotaFrameModel>
Successful
Exceptions
- NfieldSdkException
A server side error occurred.
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
protected virtual Task<SurveysQuotaVersionsClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T