OutcomeSetItem class
Revision as of 09:58, 30 January 2019 by Administrator (talk | contribs)
OutcomeSetItem
Outcome set item.
Methods
- string ToString() - The string representation of the object.
Properties
- string AsteriskCode { get; } - Get which asterisk code will map to this outcome if any.
- bool AutoNext { get; } - Get if the dialer can automatically dial next number after this outcome.
- int ContactStatus { get; } - Get type of outcome. See Cati_ContactStatus_xxx.
- int ContactStatusIndex { get; } - Get order of item in the set. Lower is earlier.
- int DaysBlacklisted { get; } - Get number of days to blacklist phonenumber after, and permanently disable qas user.
- bool DedicatedToInterviewer { get; } - Get if next time use same interviewer to call.
- bool DedicatedToOthers { get; } - Get if interviewer can choose who to dedicate next call to.
- int Delay { get; } - Get number of minutes to delay until retrying qas.
- LocalizedString Description { get; } - Get description of the outcome.
- int Id { get; } - Get id of the outcome.
- int MaxAllowedDuration { get; } - Get maximum number of seconds a call of this outcome should take.
- LocalizedString Name { get; } - Get name of the outcome.
- string ObjectTypeName { get; } - The name of the type of object.
- bool OutOfQuota { get; } - Get if qas is marked as out of quota.
- int Priority { get; } - Get new priority after save.
- int ProtectDuration { get; } - Get number of days the qas user cannot be sampled.
- TypeInformation TypeInformation { get; } - Get information about this class.
Examples
number qnaireRid = 15639974;
CatiSettings settings = new CatiSettings(qnaireRid);
array items = settings.OutcomeSet.Items;
for(number i = 0; i<items.Count ; i++)
{
OutcomeSetItem item = items[i];
number itemStatus = item.ContactStatus;// see status more at function GetCatiOutcomeStatus
string itemName = item.Name.GetTranslationForLoggedInUser();
print(convertToString (itemStatus)+": " + itemName);
}
/*
1: Connection reached
3: Appointment - sure
3: Call again later (appointment)
2: Answering machine
4: Busy
4: No answer
2: Wrong number
...
2: Invalid number
*/