Coder Social home page Coder Social logo

pokejava's People

Contributors

michael-cohen-io avatar peternerd 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

Watchers

 avatar  avatar  avatar  avatar  avatar

pokejava's Issues

Awesome!

This is fantastic to see.

Might I suggest when you're done, adding a short "quick start" in the README?

Something similar to pykemon ๐Ÿ‘

Null pointer instead of empty list

There's something that I don't find correct in the methods like Type.getResistance

If the resistance list is empty, it returns a null pointer, I found this really annoying while using the library. The list is already created, so why not return the empty list and avoid a null pointer exception when using a for loop on this list? If there's a reason then I'd like to know.

Thank you for reading and for the hard work!

Note: bear in mind that right now the PokeAPI doesn't include the type resistance information

SSL Handshake failure

Hi there! I'm always getting an SSLHandshakeException when trying to receive any data. Any idea what could be causing that and how to fix this? I tested the url in the browser and it worked fine (after exchanging "v1" with "v2".

JSONObject not found

I'm getting this error on the Pokemon constructor depending on the ID I use as argument:

org.json.JSONException: JSONObject["level"] not found.
at org.json.JSONObject.get(JSONObject.java:454)
at org.json.JSONObject.getInt(JSONObject.java:514)
at com.pokejava.Pokemon.initializePokemon(Pokemon.java:169)
at com.pokejava.Pokemon.(Pokemon.java:48)
at main.Main.main(Main.java:47)
org.apache.http.client.HttpResponseException: NOT FOUND

Anyone knows how to fix it?

Description added to Pokemon resource

I've added the links to Descriptions in the Pokemon resource.
They follow the same style as evolutions, moves, abilities and types:

[
    {
        "name": "bulbasaur_gen_1",
    "resource_uri": "/api/v1/description/2/"
    },
    {
    "name": "bulbasaur_gen_2",
    "resource_uri": "/api/v1/description/3/"
    }
]

Just a suggestion that you might want to update your wrapper to include it!

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.