| | 1 | | using Cysharp.Threading.Tasks; |
| | 2 | | using DCL; |
| | 3 | | using System; |
| | 4 | | using System.Threading; |
| | 5 | |
|
| | 6 | | namespace DCLServices.Lambdas.LandsService |
| | 7 | | { |
| | 8 | | public class LandsService : ILandsService, ILambdaServiceConsumer<LandsResponse> |
| | 9 | | { |
| | 10 | | internal const string END_POINT = "nfts/lands/"; |
| | 11 | | internal const int TIMEOUT = ILambdasService.DEFAULT_TIMEOUT; |
| | 12 | | internal const int ATTEMPTS_NUMBER = ILambdasService.DEFAULT_ATTEMPTS_NUMBER; |
| | 13 | |
|
| | 14 | | private Service<ILambdasService> lambdasService; |
| | 15 | |
|
| | 16 | | public LambdaResponsePagePointer<LandsResponse> GetPaginationPointer(string address, int pageSize, CancellationT |
| 0 | 17 | | new (END_POINT + address, pageSize, ct, this); |
| | 18 | |
|
| | 19 | | UniTask<(LandsResponse response, bool success)> ILambdaServiceConsumer<LandsResponse>.CreateRequest(string endPo |
| 0 | 20 | | lambdasService.Ref.Get<LandsResponse>( |
| | 21 | | END_POINT, |
| | 22 | | endPoint, |
| | 23 | | TIMEOUT, |
| | 24 | | ATTEMPTS_NUMBER, |
| | 25 | | cancellationToken, |
| | 26 | | LambdaPaginatedResponseHelper.GetPageSizeParam(pageSize), LambdaPaginatedResponseHelper.GetPageNumParam( |
| | 27 | |
|
| 493 | 28 | | public void Dispose() { } |
| | 29 | |
|
| 493 | 30 | | public void Initialize() { } |
| | 31 | | } |
| | 32 | | } |