public static AccountsResponse Load(dynamic dyn) { Func <dynamic, AccountsResponse> func = (d) => { return(new AccountsResponse { Data = AccountsWrapper.Load(d.data) }); }; return(YnabApi.ProcessApiResult(dyn, func)); }
public static AccountsWrapper Load(dynamic dyn) { Func <dynamic, AccountsWrapper> func = (d) => { var result = new AccountsWrapper(); foreach (var a in d.accounts) { result.Accounts.Add(Account.Load(a)); } return(result); }; return(YnabApi.ProcessApiResult(dyn, func)); }