示例#1
0
        public async Task NextPageAsync()
        {
            Page += 1;
            _restRequest.Parameters.Find(x => x.Name == "page").Value = Page;
            var response = await _apiConnection.ExecuteGetAsync <IList <TResponse> >(_restRequest).ConfigureAwait(false);

            Items = response;

            if (response.Any() && response.Count() == PageSize)
            {
                CanMoveNext = true;
            }
            else
            {
                CanMoveNext = false;
            }
        }