/// <summary> /// Get a string representation of the enum encoding the verification value /// </summary> /// <param name="result">Enum value encoding the verification result</param> /// <returns></returns> private String GetResponseValue(VerificationResult.SpeakerVerificationResult result) { switch (result) { case VerificationResult.SpeakerVerificationResult.Accept: return "Accept"; case VerificationResult.SpeakerVerificationResult.Reject: return "Reject"; default: return "Unknown value"; } }
/// <summary> /// Get a string representation of confidence level enum /// </summary> /// <param name="level">The value of the confidence level</param> /// <returns></returns> private String GetConfidenceValue(VerificationResult.ConfidenceLevel level) { switch (level) { case VerificationResult.ConfidenceLevel.High: return "High"; case VerificationResult.ConfidenceLevel.Normal: return "Normal"; case VerificationResult.ConfidenceLevel.Low: return "Low"; default: return "Unknown value"; } }