C# Class Nfield.Services.Implementation.NfieldSurveysService

Implementation of INfieldSurveysService
Inheritance: INfieldSurveysService, INfieldConnectionClientObject
Show file Open project: NIPOSoftware/Nfield-SDK Class Usage Examples

Private Properties

Property Type Description
GetInterviewerInstructionUri string
GetSamplingPointImageUri string
SamplingPointImageAddAsync Task

Public Methods

Method Description
AddAsync ( Nfield.Models.Survey survey ) : Task

See INfieldSurveysService.AddAsync

CountsQueryAsync ( string surveyId ) : Task
CreateOrUpdateOnlineQuotaAsync ( string surveyId, QuotaFrame quotaFrame ) : Task
CreateOrUpdateQuotaAsync ( string surveyId, QuotaLevel quota ) : Task

INfieldSurveysService.CreateOrUpdateQuotaAsync

DeleteInterviewerFileInstructionsAsync ( string surveyId ) : System.Threading.Tasks.Task

INfieldSurveysService.DeleteInterviewerFileInstructionsAsync(string)

DownloadInterviewerFileInstructionsAsync ( string surveyId ) : Task

INfieldSurveysService.DownloadInterviewerFileInstructionsAsync(string)

InitializeNfieldConnection ( INfieldConnectionClient connection ) : void
OnlineQuotaQueryAsync ( string surveyId ) : Task
QueryAsync ( ) : Task>

See INfieldSurveysService.QueryAsync

QuotaQueryAsync ( string surveyId ) : Task

See INfieldSurveysService.QuotaQueryAsync

RemoveAsync ( Nfield.Models.Survey survey ) : System.Threading.Tasks.Task

See INfieldSurveysService.RemoveAsync

SamplingPointAddAsync ( string surveyId, Nfield.Models.SamplingPoint samplingPoint ) : Task

See INfieldSurveysService.SamplingPointAddAsync

SamplingPointDeleteAsync ( string surveyId, Nfield.Models.SamplingPoint samplingPoint ) : System.Threading.Tasks.Task

See INfieldSurveysService.SamplingPointDeleteAsync

SamplingPointImageAddAsync ( string surveyId, string samplingPointId, string filePath ) : Task

INfieldSurveysService.SamplingPointImageAddAsync(string, string, string)

SamplingPointImageAddAsync ( string surveyId, string samplingPointId, string filename, byte content ) : Task

INfieldSurveysService.SamplingPointImageAddAsync(string, string, string, byte[])

SamplingPointImageDeleteAsync ( string surveyId, string samplingPointId ) : System.Threading.Tasks.Task
SamplingPointImageGetAsync ( string surveyId, string samplingPointId ) : Task
SamplingPointQueryAsync ( string surveyId, string samplingPointId ) : Task

See INfieldSurveysService.SamplingPointQueryAsync

SamplingPointQuotaTargetQueryAsync ( string surveyId, string samplingPointId, string levelId ) : Task

See INfieldSurveysService.SamplingPointQuotaTargetQueryAsync

SamplingPointQuotaTargetUpdateAsync ( string surveyId, string samplingPointId, SamplingPointQuotaTarget samplingPointQuotaTarget ) : Task

See INfieldSurveysService.SamplingPointQuotaTargetUpdateAsync

SamplingPointQuotaTargetsQueryAsync ( string surveyId, string samplingPointId ) : Task>

See INfieldSurveysService.SamplingPointQuotaTargetsQueryAsync

SamplingPointUpdateAsync ( string surveyId, Nfield.Models.SamplingPoint samplingPoint ) : Task

See INfieldSurveysService.SamplingPointUpdateAsync

SamplingPointsCountAsync ( string surveyId ) : Task

See INfieldSurveysService.SamplingPointsCountAsync

SamplingPointsQueryAsync ( string surveyId ) : Task>

See INfieldSurveysService.SamplingPointsQueryAsync

UpdateAsync ( Nfield.Models.Survey survey ) : Task

See INfieldSurveysService.UpdateAsync

UploadInterviewerFileInstructionsAsync ( byte fileContent, string fileName, string surveyId ) : System.Threading.Tasks.Task

INfieldSurveysService.UploadInterviewerFileInstructionsAsync(string, string)

UploadInterviewerFileInstructionsAsync ( string filePath, string surveyId ) : System.Threading.Tasks.Task

INfieldSurveysService.UploadInterviewerFileInstructionsAsync(string,string)

Private Methods

Method Description
GetInterviewerInstructionUri ( string surveyId, string fileName ) : string

Returns the URI to upload the interviewer instructions based on the provided surveyId and fileName

GetSamplingPointImageUri ( string surveyId, string samplingPointId, string fileName ) : string

Returns the URI to upload the image associated with a sampling point surveyId samplingPointId fileName

SamplingPointImageAddAsync ( string surveyId, string samplingPointId, string filename, System.Net.Http.ByteArrayContent byteArrayContent ) : Task

Method Details

AddAsync() public method

See INfieldSurveysService.AddAsync
public AddAsync ( Nfield.Models.Survey survey ) : Task
survey Nfield.Models.Survey
return Task

CountsQueryAsync() public method

public CountsQueryAsync ( string surveyId ) : Task
surveyId string
return Task

CreateOrUpdateOnlineQuotaAsync() public method

public CreateOrUpdateOnlineQuotaAsync ( string surveyId, QuotaFrame quotaFrame ) : Task
surveyId string
quotaFrame QuotaFrame
return Task

CreateOrUpdateQuotaAsync() public method

INfieldSurveysService.CreateOrUpdateQuotaAsync
public CreateOrUpdateQuotaAsync ( string surveyId, QuotaLevel quota ) : Task
surveyId string
quota Nfield.Models.QuotaLevel
return Task

DeleteInterviewerFileInstructionsAsync() public method

INfieldSurveysService.DeleteInterviewerFileInstructionsAsync(string)
public DeleteInterviewerFileInstructionsAsync ( string surveyId ) : System.Threading.Tasks.Task
surveyId string
return System.Threading.Tasks.Task

DownloadInterviewerFileInstructionsAsync() public method

INfieldSurveysService.DownloadInterviewerFileInstructionsAsync(string)
public DownloadInterviewerFileInstructionsAsync ( string surveyId ) : Task
surveyId string
return Task

InitializeNfieldConnection() public method

public InitializeNfieldConnection ( INfieldConnectionClient connection ) : void
connection INfieldConnectionClient
return void

OnlineQuotaQueryAsync() public method

public OnlineQuotaQueryAsync ( string surveyId ) : Task
surveyId string
return Task

QueryAsync() public method

See INfieldSurveysService.QueryAsync
public QueryAsync ( ) : Task>
return Task>

QuotaQueryAsync() public method

See INfieldSurveysService.QuotaQueryAsync
public QuotaQueryAsync ( string surveyId ) : Task
surveyId string
return Task

RemoveAsync() public method

See INfieldSurveysService.RemoveAsync
public RemoveAsync ( Nfield.Models.Survey survey ) : System.Threading.Tasks.Task
survey Nfield.Models.Survey
return System.Threading.Tasks.Task

SamplingPointAddAsync() public method

See INfieldSurveysService.SamplingPointAddAsync
public SamplingPointAddAsync ( string surveyId, Nfield.Models.SamplingPoint samplingPoint ) : Task
surveyId string
samplingPoint Nfield.Models.SamplingPoint
return Task

SamplingPointDeleteAsync() public method

See INfieldSurveysService.SamplingPointDeleteAsync
public SamplingPointDeleteAsync ( string surveyId, Nfield.Models.SamplingPoint samplingPoint ) : System.Threading.Tasks.Task
surveyId string
samplingPoint Nfield.Models.SamplingPoint
return System.Threading.Tasks.Task

SamplingPointImageAddAsync() public method

INfieldSurveysService.SamplingPointImageAddAsync(string, string, string)
public SamplingPointImageAddAsync ( string surveyId, string samplingPointId, string filePath ) : Task
surveyId string
samplingPointId string
filePath string
return Task

SamplingPointImageAddAsync() public method

INfieldSurveysService.SamplingPointImageAddAsync(string, string, string, byte[])
public SamplingPointImageAddAsync ( string surveyId, string samplingPointId, string filename, byte content ) : Task
surveyId string
samplingPointId string
filename string
content byte
return Task

SamplingPointImageDeleteAsync() public method

public SamplingPointImageDeleteAsync ( string surveyId, string samplingPointId ) : System.Threading.Tasks.Task
surveyId string
samplingPointId string
return System.Threading.Tasks.Task

SamplingPointImageGetAsync() public method

public SamplingPointImageGetAsync ( string surveyId, string samplingPointId ) : Task
surveyId string
samplingPointId string
return Task

SamplingPointQueryAsync() public method

See INfieldSurveysService.SamplingPointQueryAsync
public SamplingPointQueryAsync ( string surveyId, string samplingPointId ) : Task
surveyId string
samplingPointId string
return Task

SamplingPointQuotaTargetQueryAsync() public method

See INfieldSurveysService.SamplingPointQuotaTargetQueryAsync
public SamplingPointQuotaTargetQueryAsync ( string surveyId, string samplingPointId, string levelId ) : Task
surveyId string
samplingPointId string
levelId string
return Task

SamplingPointQuotaTargetUpdateAsync() public method

See INfieldSurveysService.SamplingPointQuotaTargetUpdateAsync
public SamplingPointQuotaTargetUpdateAsync ( string surveyId, string samplingPointId, SamplingPointQuotaTarget samplingPointQuotaTarget ) : Task
surveyId string
samplingPointId string
samplingPointQuotaTarget Nfield.Models.SamplingPointQuotaTarget
return Task

SamplingPointQuotaTargetsQueryAsync() public method

See INfieldSurveysService.SamplingPointQuotaTargetsQueryAsync
public SamplingPointQuotaTargetsQueryAsync ( string surveyId, string samplingPointId ) : Task>
surveyId string
samplingPointId string
return Task>

SamplingPointUpdateAsync() public method

See INfieldSurveysService.SamplingPointUpdateAsync
public SamplingPointUpdateAsync ( string surveyId, Nfield.Models.SamplingPoint samplingPoint ) : Task
surveyId string
samplingPoint Nfield.Models.SamplingPoint
return Task

SamplingPointsCountAsync() public method

See INfieldSurveysService.SamplingPointsCountAsync
public SamplingPointsCountAsync ( string surveyId ) : Task
surveyId string
return Task

SamplingPointsQueryAsync() public method

See INfieldSurveysService.SamplingPointsQueryAsync
public SamplingPointsQueryAsync ( string surveyId ) : Task>
surveyId string
return Task>

UpdateAsync() public method

See INfieldSurveysService.UpdateAsync
public UpdateAsync ( Nfield.Models.Survey survey ) : Task
survey Nfield.Models.Survey
return Task

UploadInterviewerFileInstructionsAsync() public method

INfieldSurveysService.UploadInterviewerFileInstructionsAsync(string, string)
public UploadInterviewerFileInstructionsAsync ( byte fileContent, string fileName, string surveyId ) : System.Threading.Tasks.Task
fileContent byte
fileName string
surveyId string
return System.Threading.Tasks.Task

UploadInterviewerFileInstructionsAsync() public method

INfieldSurveysService.UploadInterviewerFileInstructionsAsync(string,string)
public UploadInterviewerFileInstructionsAsync ( string filePath, string surveyId ) : System.Threading.Tasks.Task
filePath string
surveyId string
return System.Threading.Tasks.Task