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); }
public void Remove(DeviceUser user) { ListOfUsers.Remove(user); }
public void Add(DeviceUser user) { ListOfUsers.Add(user); }