Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

CatiStatistic class: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Created page with "{{CGscriptClass_Template |Name=<nowiki>CatiStatistic</nowiki> |Description=<nowiki>Represents a SampleRule.</nowiki> |Methods= {{CGscriptMethods_Template|ReturnType=string|Nam..."
 
Nguyenduyan (talk | contribs)
No edit summary
Line 23: Line 23:
Array endDate = {2018, 5, 10, 0, 0, 0, 0};
Array endDate = {2018, 5, 10, 0, 0, 0, 0};
Array result = CatiStat_get(interviewers, qnaireRid, startDate, endDate);
Array result = CatiStat_get(interviewers, qnaireRid, startDate, endDate);
print(result);//{CatiStatisticCGO,CatiStatisticCGO}
print(result);//{CatiStatistic,CatiStatistic}
for(number i = 0; i<result.Count; i++ )
for(number i = 0; i<result.Count; i++ )
{
{

Revision as of 09:08, 11 May 2018

CatiStatistic



Represents a SampleRule.


Methods

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

Properties

  • number AverageSuccesTime { get; set; } - Get/Set AverageSuccesTime in second
  • int InterviewerResourceId { get; set; } - Get/Set InterviewerResourceId
  • string ObjectTypeName { get; } - The name of the type of object.
  • number RealTime { get; set; } - Get/Set RealTime in second
  • int TotalCallAttempts { get; set; } - Get/Set TotalCallAttempts
  • number TotalTime { get; set; } - Get/Set 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 catiStatistic = result[i];	
	print(catiStatistic.InterviewerResourceId);//15003004, 15620372
	print(catiStatistic.TotalTime);//95280, 16740
	print(catiStatistic.RealTime);//89294, 16372
	print(catiStatistic.AverageSuccesTime);//1725, 2962
	print(catiStatistic.TotalCallAttempts);	//643, 116
}