Ejemplo n.º 1
0
        public ReadOnlyPagedCollection(IApiResponse <IList <T> > response, Func <Uri, Task <IApiResponse <IList <T> > > > nextPageFunc)
            : base(response != null ? response.Body ?? new List <T>() : new List <T>())
        {
            response.ArgumentNotNull(nameof(response));
            nextPageFunc.ArgumentNotNull(nameof(nextPageFunc));

            this.nextPageFunc = nextPageFunc;

            if (response != null)
            {
                info = response.HttpResponse.ApiInfo;
            }
        }