this.api = api;
this.streamRuleFactory = streamRuleFactory;
}
public StreamRulesResult all(String streamId) throws IOException, APIException {
GetStreamRulesResponse r;
r = api.path(resource.get(streamId), GetStreamRulesResponse.class).execute();
return new StreamRulesResult(r.total, r.stream_rules);
}