GetQuotas
Description
Get all Quotas
Signature
SurveySchema GetQuotas(string key, string projectId, bool projectSpecific)
Parameters
Name | Data Type | Description |
---|---|---|
key |
string required |
The authentication key |
projectId |
string required |
ID of the project |
projectSpecific |
bool required |
True means that the questionnaire should be linked to the project and can be updated, False means that the questionnaire should not be linked to the project and can be used to update other projects. |
Example
// Create instance of the webservice
var authoring = new AuthoringSoapClient();
//***************************************************
//
// Get all quotas, delete one and update
//
//***************************************************
// Get all Quotas, projectspecific to enable update
SurveySchema def = authoring.GetQuotas(key,projectID,true);
// Remove the last quota if it exists
ArrayList quotas = new ArrayList((Array)def.Root.Nodes);
if (quotas.Count > 0)
{
quotas.RemoveAt(quotas.Count-1);
def.Root.Nodes = (Quota[])quotas.ToArray(typeof(Quota));
}
// Update the quota
authoring.Update(key,projectID,def);