Example #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>();
 }
Example #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;
 }
Example #3
0
 public CaptchaBuilder()
 {
     Key     = KeyBuilder.Generate();
     Captcha = CaptchaEngine.Generate(Key);
 }
Example #4
0
 public WerewolfBase(List <IGamePlayer> players)
 {
     GameId  = KeyBuilder.Generate();
     Players = players;
 }