} // Load public CallCredit Parse(Tuple <CT_SearchResult, ServiceLog> oDoc) { if (oDoc == null || oDoc.Item1 == null) { return(null); } Log.Info("Parsing CallCredit company data..."); var builder = new CallCreditModelBuilder(); return(builder.Build(oDoc.Item1, oDoc.Item2.CustomerId, oDoc.Item2.DirectorId, oDoc.Item2.InsertDate, oDoc.Item2.Id)); } // Parse
public static void Main() { try { CallcreditBsbAndCreditReport apiProxy = InitializeApiProxy(); UserInfo user = InitializeUser(); CT_SearchDefinition apiSD = InitializeApiRequest(user); CT_SearchResult apiresult = new CT_SearchResult(); apiresult = apiProxy.Search07a(apiSD); var builder = new CallCreditModelBuilder(); builder.Build(apiresult); Console.WriteLine("====" + apiresult.creditrequest.applicant.Length); Console.WriteLine("====" + apiresult.creditrequest.applicant[0].dob); } catch (Exception e) { Console.WriteLine(e); //throw; } /*apiProxy.Dispose();*/ } // Main