Exemple #1
0
        public static void assetSummaryApp()
        {
            Console.WriteLine("AssetSummary - TEST - START");

            //LoginApp.doLogin("yodlee_10000004", "yodlee123", "ysluser2", "TEST@123");
            Console.WriteLine("------------------------");
            Console.WriteLine("ClassificationType ClassificationValue Contribution Value HoldingId AccountId Value Cash");
            Console.WriteLine("------------------------");
            AssetSummaries assetSummaries = AssetSummaryApp.AssetSummaries;

            Console.WriteLine(assetSummaries.ToString());
            LoginApp.readValue();
        }
Exemple #2
0
        public AssetSummaries parseJSON(string json)
        {
            AssetSummaries summaries = new AssetSummaries();
            string         mn        = "parseJSON(" + json + ")";

            // Console.WriteLine(fqcn + " :: " + mn);
            try
            {
                json = json.Substring(json.IndexOf("["));
                json = json.Substring(0, json.LastIndexOf("]") + 1);
                List <AssetSummary> assetSummary = JsonConvert.DeserializeObject <List <AssetSummary> >(json);//deserialing the json object for holding.

                summaries.assetSummary = assetSummary;
            }
            catch (ArgumentOutOfRangeException)
            {
                return(summaries);
            }
            return(summaries);
        }