/// <summary> /// Is Registered /// </summary> /// <param name="id"></param> private static void IsRegister(string id) { CloudABISBiometricRequest biometricRequest = new CloudABISBiometricRequest { RegistrationID = id, CustomerKey = _cloudABISAPICredentials.CustomerKey, EngineName = CloudABISConstant.FINGERPRINT_ENGINE, Token = _cloudABISToken.AccessToken }; //IsRegistered CloudABISResponse matchingResponse = _cloudABISAPI.IsRegistered(biometricRequest); if (matchingResponse != null) { if (matchingResponse.Status.Equals(EnumOperationStatus.SUCCESS)) { Console.WriteLine("IsRegistered: " + matchingResponse.OperationResult); } else { Console.WriteLine("IsRegistered: " + matchingResponse.OperationResult); } } else { Console.WriteLine("Something went wrong!"); } }
/// <summary> /// Is Registered /// </summary> /// <param name="id"></param> /// <param name="token"></param> /// <returns></returns> public string IsRegister(string id, string token) { CloudABISBiometricRequest biometricRequest = new CloudABISBiometricRequest { RegistrationID = id, CustomerKey = _customerKey, EngineName = _engineName, Token = token }; CloudABISAPI cloudABISAPI = new CloudABISAPI(_appkey, _secretKey, _apiBaseUrl); CloudABISResponse matchingResponse = cloudABISAPI.IsRegistered(biometricRequest); if (matchingResponse != null) { return(CloudABISResponseParser.GetResponseMessage(matchingResponse.OperationResult)); } else { return("Something went wrong!"); } }