UserQuarantine class
Revision as of 08:20, 2 July 2020 by Administrator (talk | contribs)
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
==============================