public async Task <IPaginationResult <IWalletBalance> > GetBalances(int take, string continuation) { var t = await _storage.GetDataAsync(WalletBalanceEntity.GeneratePartitionKey()); var result = await _storage.GetDataWithContinuationTokenAsync(WalletBalanceEntity.GeneratePartitionKey(), take, continuation); return(PaginationResult <IWalletBalance> .Create(result.Entities.Cast <IWalletBalance>(), result.ContinuationToken)); }
public Task <IPaginationResult <IAsset> > GetPaged(int take, string continuation) { return(Task.FromResult(PaginationResult <IAsset> .Create(_mockList, null))); }
public async Task <IPaginationResult <IWalletBalance> > GetBalancesAsync(int take, string continuation) { var result = await _storage.GetDataWithContinuationTokenAsync(take, continuation); return(PaginationResult <IWalletBalance> .Create(result.Entities, result.ContinuationToken)); }
public Task <IPaginationResult <IAsset> > GetPagedAsync(int take, int skip) { var contination = take + skip >= _mockList.Count ? null : (skip + take).ToString(); return(Task.FromResult(PaginationResult <IAsset> .Create(_mockList.Skip(skip).Take(take), contination))); }