Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

UserQuarantine class: Difference between revisions

From Catglobe Wiki
Created page with "{{CGscriptClass_Template |Name=UserQuarantine |Description=A quarantine prohibiting bulkmails and bulksms from being sent to user. |Methods= {{CGscriptMethods_Template|ReturnT..."
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
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=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=DateTime|Name=From|HasGetter=1|Description=When was the quarantine in effect from}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Comment</nowiki>|HasGetter=1|Description=<nowiki>Get ConditionType of the question condition</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=ObjectTypeName|HasGetter=1|Description=The name of the type of object.}}
{{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=OriginalTo|HasGetter=1|Description=When was the quarantine supposed to be effective until}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=QuarantineResourceId|HasGetter=1|Description=Resource Id of the quarantine}}
{{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=RemovedByUserId|HasGetter=1|Description=UserId of user that removed the user from the quarantine. 0 if not removed}}
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>QuarantineResourceId</nowiki>|HasGetter=1|Description=<nowiki>Resource Id of the quarantine</nowiki>}}
{{CGscriptProperties_Template|ReturnType=DateTime|Name=To|HasGetter=1|Description=When is the quarantine effective until}}
{{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=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}}
{{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=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}}
}}
}}


=== Examples ===
=== Examples ===
Line 33: Line 36:
  print("==============================");
  print("==============================");
  }
  }
//
//Result:
1
1
quarantine for test
quarantine for test

Latest revision as of 08: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
==============================