Class SurveysInvitationImagesClient
public class SurveysInvitationImagesClient
- Inheritance
-
SurveysInvitationImagesClient
- Inherited Members
Constructors
SurveysInvitationImagesClient(string, HttpClient)
public SurveysInvitationImagesClient(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
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
surveyIdstringThe id of the survey
fileNamestringThe form file that contains the file
fileFileParametercancellationTokenCancellationTokenA 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
responseHttpResponseMessageheadersIReadOnlyDictionary<string, IEnumerable<string>>cancellationTokenCancellationToken
Returns
Type Parameters
T