Table of Contents

Class SurveysInvitationImagesClient

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

Constructors

SurveysInvitationImagesClient(string, HttpClient)

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

PostAsync(string, string, FileParameter, CancellationToken)

Method used to upload interviewer instruction file.
The re-upload of a new pdf file for the same survey it will replace the existing one.

public virtual Task<AddInvitationImageResult> PostAsync(string surveyId, string fileName, FileParameter file = null, CancellationToken cancellationToken = default)

Parameters

surveyId string

The id of the survey

fileName string

The form file that contains the file

file FileParameter
cancellationToken CancellationToken

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

Returns

Task<AddInvitationImageResult>

Successful

Exceptions

NfieldSdkException

A server side error occurred.

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

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

Type Parameters

T