Difference between revisions of "UserQuarantine class"
Line 6: | Line 6: | ||
|Properties= | |Properties= | ||
{{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=int|Name=<nowiki>AddedByUserId</nowiki>|HasGetter=1|Description=<nowiki>UserId of user that added the user to the quarantine</nowiki>}} | ||
+ | {{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>AddedByUserResourceId</nowiki>|HasGetter=1|Description=<nowiki>User resource id of user that added the user to the quarantine</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Comment</nowiki>|HasGetter=1|Description=<nowiki>Get ConditionType of the question condition</nowiki>}} | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Comment</nowiki>|HasGetter=1|Description=<nowiki>Get ConditionType of the question condition</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>From</nowiki>|HasGetter=1|Description=<nowiki>When was the quarantine in effect from</nowiki>}} | {{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>From</nowiki>|HasGetter=1|Description=<nowiki>When was the quarantine in effect from</nowiki>}} | ||
Line 12: | Line 13: | ||
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>QuarantineResourceId</nowiki>|HasGetter=1|Description=<nowiki>Resource Id of the quarantine</nowiki>}} | {{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>QuarantineResourceId</nowiki>|HasGetter=1|Description=<nowiki>Resource Id of the quarantine</nowiki>}} | ||
{{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=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=int|Name=<nowiki>RemovedByUserResourceId</nowiki>|HasGetter=1|Description=<nowiki>User resource id of user that removed the user from the quarantine. 0 if not removed</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>To</nowiki>|HasGetter=1|Description=<nowiki>When is the quarantine effective until</nowiki>}} | {{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>To</nowiki>|HasGetter=1|Description=<nowiki>When is the quarantine effective until</nowiki>}} | ||
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}} | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}} | ||
}} | }} | ||
+ | |||
=== Examples === | === Examples === |
Latest revision as of 09:33, 25 April 2022
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
- int AddedByUserResourceId { get; } - User resource id 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
- int RemovedByUserResourceId { get; } - User resource id 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
==============================