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

            Silanis.ESL.API.KnowledgeBasedAuthentication result = new Silanis.ESL.API.KnowledgeBasedAuthentication();
            result.SignerInformationForEquifaxCanada  = new SignerInformationForEquifaxCanadaConverter(sdkKnowledgeBasedAuthentication.SignerInformationForEquifaxCanada).ToAPISignerInformationForEquifaxCanada();
            result.SignerInformationForEquifaxUSA     = new SignerInformationForEquifaxUSAConverter(sdkKnowledgeBasedAuthentication.SignerInformationForEquifaxUSA).ToAPISignerInformationForEquifaxUSA();
            result.KnowledgeBasedAuthenticationStatus = new KnowledgeBasedAuthenticationStatusConverter(sdkKnowledgeBasedAuthentication.KnowledgeBasedAuthenticationStatus).ToAPIKnowledgeBasedAuthenticationStatus();

            return(result);
        }
示例#2
0
 /// <summary>
 /// Construct with API KnowledgeBasedAuthentication object involved in conversion.
 /// </summary>
 /// <param name="apiKnowledgeBasedAuthentication">API knowledge based authentication.</param>
 public KnowledgeBasedAuthenticationConverter(Silanis.ESL.API.KnowledgeBasedAuthentication apiKnowledgeBasedAuthentication)
 {
     this.apiKnowledgeBasedAuthentication = apiKnowledgeBasedAuthentication;
 }