Difference between revisions of "OutcomeSetItem class"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=<nowiki>OutcomeSetItem</nowiki> |Description=<nowiki>Outcome set item.</nowiki> |Methods= {{CGscriptMethods_Template|ReturnType=string|Name=<now...")
 
Line 23: Line 23:
 
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
 
}}
 
}}
 +
=== <span style="color:#DF8621">'''Examples'''</span> ===
 +
<source lang="javascript">
 +
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];
 +
print(item.Name.GetTranslationForLoggedInUser());
 +
}
 +
/*
 +
Connection reached
 +
Appointment - sure
 +
Call again later (appointment)
 +
Answering machine
 +
Busy
 +
No answer
 +
Wrong number
 +
...
 +
Invalid number
 +
*/
 +
</source>

Revision as of 10:31, 30 January 2019

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];
	print(item.Name.GetTranslationForLoggedInUser());
}
/*
Connection reached
Appointment - sure
Call again later (appointment)
Answering machine
Busy
No answer
Wrong number
...
Invalid number
*/