Difference between revisions of "CatTaskStatusCompletedForBulk class"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "{{CGscriptClass_Template |Name=<nowiki>CatTaskStatusCompletedForBulk</nowiki> |Description=<nowiki>Completion report from bulkmail and bulksms cattask</nowiki> |Methods= {{CGs...")
 
Line 10: Line 10:
 
{{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">
 +
CatTaskScheduleHelper ct = new CatTaskScheduleHelper ();
 +
object e = ct.GetTaskStatusByInstanceId(104726);//TaskType: GenerateBulkMailSentTask
 +
print(e.ObjectTypeName);//CatTaskStatusCompletedForBulk
 +
print(e.Count);//Number of emails sent: 14
 +
print(e.Id);//Bulkmail Id: 7715
 +
</source>

Revision as of 06:53, 13 July 2017

CatTaskStatusCompletedForBulk



Completion report from bulkmail and bulksms cattask


Methods

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

Properties

  • int Count { get; } - Number of emails sent
  • int Id { get; } - Bulkmail or bulksms id
  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.

Examples

CatTaskScheduleHelper ct = new CatTaskScheduleHelper ();
object e = ct.GetTaskStatusByInstanceId(104726);//TaskType: GenerateBulkMailSentTask
print(e.ObjectTypeName);//CatTaskStatusCompletedForBulk
print(e.Count);//Number of emails sent: 14
print(e.Id);//Bulkmail Id: 7715