コード例 #1
0
        /// <summary>
        /// Convert from API KnowledgeBasedAuthentication to SDK KnowledgeBasedAuthentication.
        /// </summary>
        /// <returns>The SDK knowledge based authentication.</returns>
        public Silanis.ESL.SDK.KnowledgeBasedAuthentication ToSDKKnowledgeBasedAuthentication()
        {
            if (apiKnowledgeBasedAuthentication == null)
            {
                return(sdkKnowledgeBasedAuthentication);
            }

            Silanis.ESL.SDK.KnowledgeBasedAuthentication result = new Silanis.ESL.SDK.KnowledgeBasedAuthentication();
            result.SignerInformationForEquifaxCanada  = new SignerInformationForEquifaxCanadaConverter(apiKnowledgeBasedAuthentication.SignerInformationForEquifaxCanada).ToSDKSignerInformationForEquifaxCanada();
            result.SignerInformationForEquifaxUSA     = new SignerInformationForEquifaxUSAConverter(apiKnowledgeBasedAuthentication.SignerInformationForEquifaxUSA).ToSDKSignerInformationForEquifaxUSA();
            result.KnowledgeBasedAuthenticationStatus = new KnowledgeBasedAuthenticationStatusConverter(apiKnowledgeBasedAuthentication.KnowledgeBasedAuthenticationStatus).ToSDKKnowledgeBasedAuthenticationStatus();
            return(result);
        }
コード例 #2
0
 /// <summary>
 /// Construct with SDK KnowledgeBasedAuthentication object involved in conversion.
 /// </summary>
 /// <param name="sdkKnowledgeBasedAuthentication">SDK knowledge based authentication.</param>
 public KnowledgeBasedAuthenticationConverter(Silanis.ESL.SDK.KnowledgeBasedAuthentication sdkKnowledgeBasedAuthentication)
 {
     this.sdkKnowledgeBasedAuthentication = sdkKnowledgeBasedAuthentication;
 }