Skip to content

Commit

Permalink
define cursor, order and limit in AssetsRequestBuilder object. (l…
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat authored Sep 7, 2023
1 parent 4d87082 commit adad474
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/org/stellar/sdk/requests/AssetsRequestBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,22 @@ public static Page<AssetResponse> execute(OkHttpClient httpClient, HttpUrl uri)
public Page<AssetResponse> 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;
}
}

0 comments on commit adad474

Please sign in to comment.