Table of Contents

Class DomainSurveyGroupsSurveysClient

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

Constructors

DomainSurveyGroupsSurveysClient(string, HttpClient)

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

GetSurveysAsync(int, CancellationToken)

Returns a list of all surveys in the survey group.

public virtual Task<ICollection<SurveyModel>> GetSurveysAsync(int surveyGroupId, CancellationToken cancellationToken = default)

Parameters

surveyGroupId int
cancellationToken CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<ICollection<SurveyModel>>

Successful

Exceptions

NfieldSdkException

A server side error occurred.

ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)

protected virtual Task<DomainSurveyGroupsSurveysClient.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<DomainSurveyGroupsSurveysClient.ObjectResponseResult<T>>

Type Parameters

T