Giter Club home page Giter Club logo

whatapi's People

Contributors

dr4g0nnn avatar gwindow avatar timmikeladze avatar twinklebear avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

whatapi's Issues

Re-designing the API library

The API library is a bit of a mess to work with due to a bunch of different packages each defining their own versions of the same classes. It looks like this was done so that GSON could be used, which requires that the class exactly matches the JSON response, but because the site api is kind of inconsistent about what information it gives us where this results in the library being as inconsistent as the site.

For example there are quite a few versions of the Torrent class: 1, 2, 3, 4, 5 and one class named Result that shares a lot with Torrent 6. This happens a lot throughout the library.

Because of the awkwardness of dealing with GSON I've been looking into using Jackson for parsing the JSON ourselves, where now we'd need to handle the inconsistencies ourselves perhaps by doing a full load of the object when wanting to access a missing data field or something.

Also it sounds like the Apache HTTP client we're using at the moment is being phased out from reading this post and that we should move to HttpURLConnection, however using HttpURLConnection isn't recommended on 2.2 and lower due to bugs, which would mean that the user mentioned in this bug wouldn't be able to use the app. We could have an older phone build, stick with Apache or just decide to not support 2.2 and lower (if we're even able to with Apache).

Anyways this would definitely be a lot of work but I think we could improve the app as well if we had a simpler/cleaner library to work with. Let me know what you think folks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.