Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow fetching json response from Flickr (for a few methods) #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Watcher24
Copy link

Enable to fetch json-response from flickr (no unmarshalling).

Would be feasible for my app. I've done a 1st attempt in a way which will not break existing API, however, it is not very elegant.

The main change would be Transport#getJson.
Then i've added PhotosInterface#getInfoAsJson and getSizesAsJson (as alternative to getInfo) ... and i would need more.
(For this reason i've also introduced JSONResponse and JSONResponseImpl.)

I could add all the methods i need, but to do it for at least all get#methods on PhotosInterface and PhotosetsInterface it would be a lot of boilerplate work duplicating all the methods ... not a good approach.
So would be interested in how to enable json in a more elegant way (and to avoid to break API ... changing the signature of these getter methods).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant