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