From adad474a4928cd3de72889f22ffe58751611bb69 Mon Sep 17 00:00:00 2001 From: Jun Luo <4catcode@gmail.com> Date: Fri, 8 Sep 2023 00:35:57 +0800 Subject: [PATCH] define `cursor`, `order` and `limit` in AssetsRequestBuilder object. (#522) --- .../sdk/requests/AssetsRequestBuilder.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/java/org/stellar/sdk/requests/AssetsRequestBuilder.java b/src/main/java/org/stellar/sdk/requests/AssetsRequestBuilder.java index 515882c98..4db3d0527 100644 --- a/src/main/java/org/stellar/sdk/requests/AssetsRequestBuilder.java +++ b/src/main/java/org/stellar/sdk/requests/AssetsRequestBuilder.java @@ -39,4 +39,22 @@ public static Page execute(OkHttpClient httpClient, HttpUrl uri) public Page execute() throws IOException, TooManyRequestsException { return this.execute(this.httpClient, this.buildUri()); } + + @Override + public AssetsRequestBuilder cursor(String token) { + super.cursor(token); + return this; + } + + @Override + public AssetsRequestBuilder limit(int number) { + super.limit(number); + return this; + } + + @Override + public AssetsRequestBuilder order(Order direction) { + super.order(direction); + return this; + } }