Esempio n. 1
0
 /// <summary>
 /// .ctor
 /// </summary>
 /// <param name="passcodeVersion"></param>
 /// <param name="passcodeType"></param>
 /// <param name="passcodeName"></param>
 /// <param name="beginningTime"></param>
 /// <param name="expirationTime"></param>
 /// <exception cref="ArgumentException">
 /// <paramref name="passcodeName"/> is null or empty
 /// -or-
 /// <paramref name="passcodeType"/> is invalid
 /// </exception>
 public NewGeneratedPasscodeData(int passcodeVersion, PasscodeType passcodeType, string passcodeName, DateTime beginningTime, DateTime expirationTime)
 {
     PasscodeVersion = passcodeVersion;
     PasscodeType    = passcodeType.IsExist();
     PasscodeName    = passcodeName.IsNotNullOrEmpty(nameof(passcodeName));
     BeginningTime   = beginningTime;
     ExpirationTime  = expirationTime;
 }
 public PasscodeTypeItem(string caption, PasscodeType type)
 {
     Caption = caption;
     Type    = type;
 }