Esempio n. 1
0
 // Useful static functions.
 public static User CreateUser()
 {
     User user = new User();
     user.LastRequest = DateTime.Now;
     user.Challenge = RSACrypto.CreateChallengeString(AjaxLife.RSAp);
     user.Rotation = -Math.PI;
     return user;
 }
Esempio n. 2
0
 // Constructor. Lets us have access to various useful user things.
 public Events(User user)
 {
     this.Client = user.Client;
     this.user = user;
 }