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

EmailBlacklist class: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
Created page with "{{CGscriptClass_Template |Name=<nowiki>EmailBlacklist</nowiki> |Description=<nowiki>A EmailBlacklist helds the relevant information of a blacklist email</nowiki> |Constructors..."
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 2: Line 2:
|Name=<nowiki>EmailBlacklist</nowiki>
|Name=<nowiki>EmailBlacklist</nowiki>
|Description=<nowiki>A EmailBlacklist helds the relevant information of a blacklist email</nowiki>
|Description=<nowiki>A EmailBlacklist helds the relevant information of a blacklist email</nowiki>
|Constructors=
|InheritsFrom=object|Constructors=
{{CGscriptConstructors_Template|Parameters=
{{CGscriptConstructors_Template|Parameters=
{{CGscriptParameters_Template|Type=string|Name=<nowiki>emailAddress</nowiki>|Description=<nowiki>Set emailAdress.</nowiki>}}
{{CGscriptParameters_Template|Type=string|Name=<nowiki>emailAddress</nowiki>|Description=<nowiki>Set emailAdress.</nowiki>}}
Line 10: Line 10:
|Description=<nowiki>Creat an new EmailBlacklist instance using an email and relevant comment</nowiki>}}
|Description=<nowiki>Creat an new EmailBlacklist instance using an email and relevant comment</nowiki>}}
|Methods=
|Methods=
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Inherited=object|Description=<nowiki>The string representation of the object.</nowiki>}}
|Properties=
|Properties=
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Comment</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set email comment</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Comment</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set email comment</nowiki>}}
Line 16: Line 16:
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Email</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set email address</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Email</nowiki>|HasGetter=1|HasSetter=1|Description=<nowiki>Get/Set email address</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|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>}}
}}
}}
=== <span style="color:#DF8621">'''Examples'''</span> ===
<source lang="javascript">
array emails = {"[email protected]", "[email protected]"};
Dictionary d = Blacklist_getDetail(emails);//{"[email protected]": EmailBlacklist}
EmailBlacklist e = d["[email protected]"];
print(e.Comment);//comment3
print(e.Date);//2017-08-11 04:13:26
</source>

Latest revision as of 07:02, 2 July 2020

EmailBlacklist



A EmailBlacklist helds the relevant information of a blacklist email

Parent class

Inherits from object

Constructors

  • (string emailAddress "Set emailAdress.") - Creat an new EmailBlacklist instance using an email
  • (string emailAddress "Set emailAdress.", string comment "Set comment.") - Creat an new EmailBlacklist instance using an email and relevant comment

Methods

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

Properties

  • string Comment { get; set; } - Get/Set email comment
  • DateTime Date { get; } - Get date
  • string Email { get; set; } - Get/Set email address
  • string ObjectTypeName { get; } - The name of the type of object.
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.


Examples

array emails = {"[email protected]", "[email protected]"};
Dictionary d = Blacklist_getDetail(emails);//{"[email protected]": EmailBlacklist}
EmailBlacklist e = d["[email protected]"];
print(e.Comment);//comment3
print(e.Date);//2017-08-11 04:13:26