Difference between revisions of "UserQuarantine class"
(Created page with "{{CGscriptClass_Template |Name=UserQuarantine |Description=A quarantine prohibiting bulkmails and bulksms from being sent to user. |Methods= {{CGscriptMethods_Template|ReturnT...") |
|||
Line 33: | Line 33: | ||
print("=============================="); | print("=============================="); | ||
} | } | ||
− | // | + | //Result: |
1 | 1 | ||
quarantine for test | quarantine for test |
Revision as of 10:33, 20 May 2016
UserQuarantine
A quarantine prohibiting bulkmails and bulksms from being sent to user.
Methods
- string ToString() - The string representation of the object.
Properties
- number 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
- number QuarantineResourceId { get; } - Resource Id of the quarantine
- number 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
- 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
==============================