Exemplo n.º 1
0
 public Confirmation(string idUser, string idLicense, int role)
 {
     IdUser         = idUser;
     IdLicense      = idLicense;
     Role           = role;
     Token          = Security.CryptoUtils.SHA256HashStringForUTF8String(Security.CryptoUtils.RandomKey());
     DateCreation   = DateTime.Now;
     DateExpiration = DateCreation.AddHours(24);
 }
Exemplo n.º 2
0
 public override string ToString()
 {
     return(Nom + " créée le " + DateCreation.ToString());
 }
Exemplo n.º 3
0
 public override string ToString()
 {
     return(IdBagage.ToString() + CodeIata + Compagnie + Ligne.ToString() + DateCreation.ToString());
     //return base.ToString();
 }