Example #1
0
        public async Task <PagedResponse> Get(Filter filter, bool listInfo = true)
        {
            var result = await superFaktura.Get(string.Format("clients/index.json{0}", filter.ToParameters(listInfo))).ConfigureAwait(false);

            if (listInfo)
            {
                return(superFaktura.DeserializeResult <PagedResponse>(result));
            }
            else
            {
                return(new PagedResponse {
                    Items = superFaktura.DeserializeResult <ItemList <ListItem> >(result)
                });
            }
        }
Example #2
0
        public async Task <Response <ExpandoObject> > Get(int ID)
        {
            var result = await superFaktura.Get(string.Format("expense/edit/{0}.json", ID)).ConfigureAwait(false);

            return(superFaktura.DeserializeResult <Response <ExpandoObject> >(result));
        }
Example #3
0
        public async Task <Detail> Get(int ID)
        {
            var result = await superFaktura.Get(string.Format("invoices/view/{0}.json", ID)).ConfigureAwait(false);

            return(superFaktura.DeserializeResult <Detail>(result));
        }