twotoasters / hoot

A powerful, flexible, lightweight Android library for dealing with RESTful endpoints.
Apache License 2.0
26 stars 10 forks source link

Builder pattern for Hoot methods #11

Closed fmedlin closed 11 years ago

fmedlin commented 11 years ago

Hoot should be able to:

HootRequest request = Hoot.createInstanceWithBaseUrl(api.getAccessTokenResource())
    .setBasicAuth(getApiKey(), getApiSecret())
    .createRequest();

Hoot methods don't seem to support the builder pattern. I think this is a good idea since most of the time, a Hoot object doesn't need to be instanciated; it's the request we're after.