Table of Contents

Class SurveysQuotaVersionsClient

Namespace
Nfield.SDK
Assembly
Nfield.Public.SDK.dll
public class SurveysQuotaVersionsClient
Inheritance
SurveysQuotaVersionsClient
Inherited Members

Constructors

SurveysQuotaVersionsClient(string, HttpClient)

public SurveysQuotaVersionsClient(string baseUrl, HttpClient httpClient)

Parameters

baseUrl string
httpClient HttpClient

Properties

BaseUrl

public string BaseUrl { get; set; }

Property Value

string

JsonSerializerSettings

protected JsonSerializerSettings JsonSerializerSettings { get; }

Property Value

JsonSerializerSettings

ReadResponseAsString

public bool ReadResponseAsString { get; set; }

Property Value

bool

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

surveyId string

The id of the survey to get the quota frame versions for

cancellationToken CancellationToken

A 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

surveyId string

The id of the survey to get the quota frame

eTag string

The version of the quota frame to retrieve

cancellationToken CancellationToken

A 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

response HttpResponseMessage
headers IReadOnlyDictionary<string, IEnumerable<string>>
cancellationToken CancellationToken

Returns

Task<SurveysQuotaVersionsClient.ObjectResponseResult<T>>

Type Parameters

T