コード例 #1
0
        private void ZApi_OnAttTransactionEx(string enrollNumber, int isInValid, int attState, int verifyMethod,
                                             int year, int month, int day, int hour, int minute, int second, int workCode)
        {
            var id = Int32.Parse(enrollNumber);

            var user = new DeviceUser()
            {
                BiometricId = id,
                //Name = DataManager.Instance.GetName(id)
            };
            //if(user == null) { throw new Exception("User Data Not Found");}

            var transaction = new TransactionEventArgs()
            {
                State           = attState,
                UserData        = user,
                TransactionDate = new DateTime(year, month, day, hour, minute, second)
            };

            FireEventTransaction(ref TransactionEvent, transaction);
        }
コード例 #2
0
 public void Remove(DeviceUser user)
 {
     ListOfUsers.Remove(user);
 }
コード例 #3
0
 public void Add(DeviceUser user)
 {
     ListOfUsers.Add(user);
 }