예제 #1
0
파일: User.cs 프로젝트: cfire24/ajaxlife
 // 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;
 }
예제 #2
0
 // Constructor. Lets us have access to various useful user things.
 public Events(User user)
 {
     this.Client = user.Client;
     this.user = user;
 }