示例#1
0
 public Letter(Author a, string subject, string message = null, LetterAttachment attachment = null)
 {
     Id         = KeyBuilder.Generate(12);
     Author     = a;
     Subject    = subject;
     Message    = message;
     Attachment = attachment;
     Date       = DateTime.UtcNow;
     Read       = false;
     Recipients = new List <MailRecipient>();
 }
示例#2
0
 public Letter()
 {
     Id         = KeyBuilder.Generate(12); // 12 char keybuilder.
     Recipients = null;
     Author     = null;
     Forwarder  = null;
     Thread     = null;
     Read       = false;
     Locked     = false;
     Marked     = false;
     Attachment = null;
     Date       = DateTime.UtcNow;
 }
示例#3
0
 public CaptchaBuilder()
 {
     Key     = KeyBuilder.Generate();
     Captcha = CaptchaEngine.Generate(Key);
 }
示例#4
0
 public WerewolfBase(List <IGamePlayer> players)
 {
     GameId  = KeyBuilder.Generate();
     Players = players;
 }