@Test public void testForAccount() { Server server = new Server("https: URI uri = server.offers() .forAccount(KeyPair.fromAccountId("GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H")) .limit(200) .order(RequestBuilder.Order.DESC) .buildUri(); assertEquals("https: }
public OffersRequestBuilder forAccount(KeyPair account) { account = checkNotNull(account, "account cannot be null"); this.setSegments("accounts", account.getAccountId(), "offers"); return this; }
OffersRequestBuilder extends RequestBuilder { public OffersRequestBuilder forAccount(KeyPair account) { account = checkNotNull(account, "account cannot be null"); this.setSegments("accounts", account.getAccountId(), "offers"); return this; } }
OffersRequestBuilder extends RequestBuilder { public OffersRequestBuilder forAccount(KeyPair account) { account = checkNotNull(account, "account cannot be null"); this.setSegments("accounts", account.getAccountId(), "offers"); return this; } OffersRequestBuilder(OkHttpClient httpClient, URI serverURI); }
OffersRequestBuilder extends RequestBuilder { public OffersRequestBuilder forAccount(KeyPair account) { account = checkNotNull(account, "account cannot be null"); this.setSegments("accounts", account.getAccountId(), "offers"); return this; } OffersRequestBuilder(OkHttpClient httpClient, URI serverURI); OffersRequestBuilder forAccount(KeyPair account); static Page<OfferResponse> execute(OkHttpClient httpClient, URI uri); Page<OfferResponse> execute(); @Override OffersRequestBuilder cursor(String token); @Override OffersRequestBuilder limit(int number); @Override OffersRequestBuilder order(Order direction); @Override ServerSentEvent stream(EventListener<ListenerType> listener); }
OffersRequestBuilder extends RequestBuilder { public OffersRequestBuilder forAccount(KeyPair account) { account = checkNotNull(account, "account cannot be null"); this.setSegments("accounts", account.getAccountId(), "offers"); return this; } OffersRequestBuilder(OkHttpClient httpClient, URI serverURI); OffersRequestBuilder forAccount(KeyPair account); static Page<OfferResponse> execute(OkHttpClient httpClient, URI uri); Page<OfferResponse> execute(); @Override OffersRequestBuilder cursor(String token); @Override OffersRequestBuilder limit(int number); @Override OffersRequestBuilder order(Order direction); @Override ServerSentEvent stream(EventListener<ListenerType> listener);  }