Difference between revisions of "UserQuarantine class"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{CGscriptClass_Template
 
{{CGscriptClass_Template
|Name=UserQuarantine
+
|Name=<nowiki>UserQuarantine</nowiki>
|Description=A quarantine prohibiting bulkmails and bulksms from being sent to user.
+
|Description=<nowiki>A quarantine prohibiting bulkmails and bulksms from being sent to user.</nowiki>
|Methods=
+
|InheritsFrom=object|Methods=
{{CGscriptMethods_Template|ReturnType=string|Name=ToString|Description=The string representation of the object.}}
+
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}}
 
|Properties=
 
|Properties=
{{CGscriptProperties_Template|ReturnType=number|Name=AddedByUserId|HasGetter=1|Description=UserId of user that added the user to the quarantine}}
+
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>AddedByUserId</nowiki>|HasGetter=1|Description=<nowiki>UserId of user that added the user to the quarantine</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=Comment|HasGetter=1|Description=Get ConditionType of the question condition}}
+
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Comment</nowiki>|HasGetter=1|Description=<nowiki>Get ConditionType of the question condition</nowiki>}}
{{CGscriptProperties_Template|ReturnType=DateTime|Name=From|HasGetter=1|Description=When was the quarantine in effect from}}
+
{{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>From</nowiki>|HasGetter=1|Description=<nowiki>When was the quarantine in effect from</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=ObjectTypeName|HasGetter=1|Description=The name of the type of object.}}
+
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=DateTime|Name=OriginalTo|HasGetter=1|Description=When was the quarantine supposed to be effective until}}
+
{{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>OriginalTo</nowiki>|HasGetter=1|Description=<nowiki>When was the quarantine supposed to be effective until</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=QuarantineResourceId|HasGetter=1|Description=Resource Id of the quarantine}}
+
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>QuarantineResourceId</nowiki>|HasGetter=1|Description=<nowiki>Resource Id of the quarantine</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=RemovedByUserId|HasGetter=1|Description=UserId of user that removed the user from the quarantine. 0 if not removed}}
+
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>RemovedByUserId</nowiki>|HasGetter=1|Description=<nowiki>UserId of user that removed the user from the quarantine. 0 if not removed</nowiki>}}
{{CGscriptProperties_Template|ReturnType=DateTime|Name=To|HasGetter=1|Description=When is the quarantine effective until}}
+
{{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>To</nowiki>|HasGetter=1|Description=<nowiki>When is the quarantine effective until</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}}
+
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}}
 
}}
 
}}
  

Revision as of 09:20, 2 July 2020

UserQuarantine



A quarantine prohibiting bulkmails and bulksms from being sent to user.

Parent class

Inherits from object

Methods

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

Properties

  • int AddedByUserId { get; } - UserId of user that added the user to the quarantine
  • string Comment { get; } - Get ConditionType of the question condition
  • DateTime From { get; } - When was the quarantine in effect from
  • string ObjectTypeName { get; } - The name of the type of object.
  • DateTime OriginalTo { get; } - When was the quarantine supposed to be effective until
  • int QuarantineResourceId { get; } - Resource Id of the quarantine
  • int RemovedByUserId { get; } - UserId of user that removed the user from the quarantine. 0 if not removed
  • DateTime To { get; } - When is the quarantine effective until
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.


Examples

number userRId= 15498958;
array quarantineList = Quarantine_getUserHistory(userRId);
 for(number j=0;j< quarantineList.Count;j++) 
 {
 print(quarantineList [j].AddedByUserId);
 print(quarantineList [j].Comment);
 print(quarantineList [j].From);
 print(quarantineList [j].ObjectTypeName);
 print(quarantineList [j].OriginalTo);
 print(quarantineList [j].QuarantineResourceId);
 print(quarantineList [j].RemovedByUserId);
 print(quarantineList [j].To);
 print("==============================");
 }
//Result:
1
quarantine for test
2016-05-20 04:49:57
UserQuarantine
2016-05-21 04:49:57
41
0
2016-05-21 04:49:57
==============================
1
After send Sendmailtest
2016-05-19 11:42:33
UserQuarantine
2016-05-20 11:42:33
41
0
2016-05-20 11:42:33
==============================