return new StreamRulesResult(r.total, r.stream_rules);
}
public StreamRule get(String streamId, String streamRuleId) throws IOException, APIException {
StreamRuleSummaryResponse streamRuleResponse = null;
streamRuleResponse = api.path(resource.get(streamId, streamRuleId), StreamRuleSummaryResponse.class)
.expect(Http.Status.OK).execute();
return streamRuleFactory.fromSummaryResponse(streamRuleResponse);
}