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.

EmailBlacklist class: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
No edit summary
Nguyenduyan (talk | contribs)
No edit summary
Line 21: Line 21:
=== <span style="color:#DF8621">'''Examples'''</span> ===
=== <span style="color:#DF8621">'''Examples'''</span> ===
<source lang="javascript">
<source lang="javascript">
 
array emails = {"an1@test.com", "an3@test.com"};
Dictionary d = Blacklist_getDetail(emails);//{"an3@test.com": EmailBlacklist}
EmailBlacklist e = d["an3@test.com"];
print(e.Comment);//comment3
print(e.Date);//2017-08-11 04:13:26
</source>
</source>

Revision as of 04:47, 11 August 2017

EmailBlacklist



A EmailBlacklist helds the relevant information of a blacklist email

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

  • 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.
  • TypeInformation TypeInformation { get; } - Get information about this class.


Examples

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