SurveyService

Class to work with surveys

Constructors


SurveyService(IRestClient restClient)

Creates and initializes an instance of SurveyService class

Parameters

restClient

The instance of the rest client object

Methods


GetAsync(string odataQuery)

Get surveys using OData filter

Parameters

odataQuery

The string with an OData query

Returns

List of Survey objects


GetAsyncByKey(string surveyId)

Get survey by the survey ID

Parameters

surveyId

Survey ID looks like pXXXXXXXXXX

Returns

Survey object


Open(string surveyId)

Open the survey

Parameters

surveyId

Survey ID looks like pXXXXXXXXXX


Close(string surveyId)

Close the survey

Parameters

surveyId

Survey ID looks like pXXXXXXXXXX


Shutdown(string surveyId)

Shutdown the survey

Parameters

surveyId

Survey ID looks like pXXXXXXXXXX


GetAssignments(string surveyId, int callCenterId)

Get all assignment information related to the specified survey

Parameters

surveyId

Survey ID looks like pXXXXXXXXXX

callCenterId

Unique identifier of the call center

Returns

List of ResourceAssignment objects


CleanAssignments(string surveyId, int callCenterId)

Remove all assignments related to the specified survey

Parameters

surveyId

Survey ID looks like pXXXXXXXXXX

callCenterId

Unique identifier of the call center


GetBasicProperties(string surveyId)

Get basic properties of the survey

Parameters

surveyId

Survey ID looks like pXXXXXXXXXX

Returns

SurveyBasicProperties object


PutBasicProperties(SurveyBasicProperties properties)

Update basic properties of the survey

Parameters

properties

Object with the survey properties