Skip to content

Commit f5d95b2

Browse files
committed
Pass params in client.getAccounts to AccountList constructor
1 parent ac60217 commit f5d95b2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/main/java/com/twilio/sdk/TwilioRestClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public void setEndpoint(String endpoint) {
602602
* @return the list of accounts.
603603
*/
604604
public AccountList getAccounts(Map<String, String> params) {
605-
AccountList list = new AccountList(this);
605+
AccountList list = new AccountList(this, params);
606606
list.setRequestAccountSid(this.accountSid);
607607
return list;
608608
}

src/main/java/com/twilio/sdk/resource/list/AccountList.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ public AccountList(TwilioRestClient client) {
2626
super(client);
2727
}
2828

29+
/**
30+
* Instantiates a new account list.
31+
*
32+
* @param client the client
33+
* @param filters the filters
34+
*/
35+
public AccountList(TwilioRestClient client, Map<String, String> filters) {
36+
super(client, filters);
37+
}
38+
2939
/* (non-Javadoc)
3040
* @see com.twilio.sdk.resource.Resource#getResourceLocation()
3141
*/

0 commit comments

Comments
 (0)