Beispiel #1
0
        public static ScheduledTransactionsResponse Load(dynamic dyn)
        {
            Func <dynamic, ScheduledTransactionsResponse> func = (d) =>
            {
                return(new ScheduledTransactionsResponse
                {
                    Data = ScheduledTransactionsWrapper.Load(d.data)
                });
            };

            return(YnabApi.ProcessApiResult(dyn, func));
        }
        public static ScheduledTransactionsWrapper Load(dynamic dyn)
        {
            Func <dynamic, ScheduledTransactionsWrapper> func = (d) =>
            {
                var result = new ScheduledTransactionsWrapper();
                foreach (var t in d.scheduled_transactions)
                {
                    result.ScheduledTransactions.Add(ScheduledTransactionDetail.Load(t));
                }
                return(result);
            };

            return(YnabApi.ProcessApiResult(dyn, func));
        }