Table of Contents

Class SurveysQuotaTargetsClient

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

Constructors

SurveysQuotaTargetsClient(string, HttpClient)

public SurveysQuotaTargetsClient(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

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

surveyId string

The id of the survey

cancellationToken CancellationToken

A 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

surveyId string

The id of the survey

eTag long

The ETag version of the quota

cancellationToken CancellationToken

A 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

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

Returns

Task<SurveysQuotaTargetsClient.ObjectResponseResult<T>>

Type Parameters

T