Difference between revisions of "CatiStatistic class"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{CGscriptClass_Template
 
{{CGscriptClass_Template
 
|Name=<nowiki>CatiStatistic</nowiki>
 
|Name=<nowiki>CatiStatistic</nowiki>
|Description=<nowiki>Represents a SampleRule.</nowiki>
+
|Description=<nowiki>Represents a CatiStatistic.</nowiki>
 
|Methods=
 
|Methods=
 
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
 
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
 
|Properties=
 
|Properties=
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>AverageSuccesTime</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set AverageSuccesTime in second</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>AverageSuccesTime</nowiki>|HasGetter=1|Description=<nowiki>Get AverageSuccesTime in second</nowiki>}}
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>InterviewerResourceId</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set InterviewerResourceId</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>FirstCall</nowiki>|HasGetter=1|Description=<nowiki>Get when first call was started inside the time period</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>InterviewerResourceId</nowiki>|HasGetter=1|Description=<nowiki>Get InterviewerResourceId</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>LastCall</nowiki>|HasGetter=1|Description=<nowiki>Get when last call was finished inside the time period</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>ModifiedRealTime</nowiki>|HasGetter=1|Description=<nowiki>Get RealTime that respects max duration of the outcome</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>NumberOfContacts</nowiki>|HasGetter=1|Description=<nowiki>Get number of contacts called</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>NumberOfInterviewSucceeded</nowiki>|HasGetter=1|Description=<nowiki>Get number of success by qas status</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>NumberOfSuccess</nowiki>|HasGetter=1|Description=<nowiki>Get number of success by outcome</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
 
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>RealTime</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set RealTime in second</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>RealTime</nowiki>|HasGetter=1|Description=<nowiki>Get RealTime in second</nowiki>}}
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>TotalCallAttempts</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set TotalCallAttempts</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>SuccessRate</nowiki>|HasGetter=1|Description=<nowiki>Get successrate in regards to ea records</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>TotalTime</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set TotalTime in second</nowiki>}}
+
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>TotalCallAttempts</nowiki>|HasGetter=1|Description=<nowiki>Get TotalCallAttempts</nowiki>}}
 +
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>TotalTime</nowiki>|HasGetter=1|Description=<nowiki>Get TotalTime in second</nowiki>}}
 
{{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>}}
 
}}
 
}}
 +
  
  

Revision as of 03:29, 14 February 2019

CatiStatistic



Represents a CatiStatistic.


Methods

  • string ToString() - The string representation of the object.

Properties

  • number AverageSuccesTime { get; } - Get AverageSuccesTime in second
  • DateTime FirstCall { get; } - Get when first call was started inside the time period
  • int InterviewerResourceId { get; } - Get InterviewerResourceId
  • DateTime LastCall { get; } - Get when last call was finished inside the time period
  • int ModifiedRealTime { get; } - Get RealTime that respects max duration of the outcome
  • int NumberOfContacts { get; } - Get number of contacts called
  • int NumberOfInterviewSucceeded { get; } - Get number of success by qas status
  • int NumberOfSuccess { get; } - Get number of success by outcome
  • string ObjectTypeName { get; } - The name of the type of object.
  • int RealTime { get; } - Get RealTime in second
  • number SuccessRate { get; } - Get successrate in regards to ea records
  • int TotalCallAttempts { get; } - Get TotalCallAttempts
  • number TotalTime { get; } - Get TotalTime in second
  • TypeInformation TypeInformation { get; } - Get information about this class.



Examples

CatiStatistic is returned when calling CatiStat_get

Array interviewers = {15620372, 15003004};
number qnaireRid = 15629214;
Array startDate = {2018, 2, 7, 0, 0, 0, 0};
Array endDate = {2018, 5, 10, 0, 0, 0, 0};
Array result = CatiStat_get(interviewers, qnaireRid, startDate, endDate);
print(result);//{CatiStatistic,CatiStatistic}
for(number i = 0; i<result.Count; i++ )
{
	CatiStatistic catiStat = result[i];	
	print(catiStat.InterviewerResourceId);//15003004, 15620372
	print(catiStat.TotalTime);//95280, 16740
	print(catiStat.RealTime);//89294, 16372
	print(catiStat.AverageSuccesTime);//1725, 2962
	print(catiStat.TotalCallAttempts);	//643, 116
}