Giter VIP home page Giter VIP logo

kbgg's People

Contributors

serafo27 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

babanel

kbgg's Issues

When retrieving multiple game id's, description is parsed only for the first one

 var collection = mutableListOf<Item?>()
    val items = mutableListOf( "173346", "526", "8790")
    val service = BggServiceFactory.getThingService()

    service.getThing(items.joinToString(), 1, 0, 0)
        .enqueue(object : Callback<Items?> {
            override fun onResponse(call: Call<Items?>, response: Response<Items?>) {
                val body = response.body()

                collection.addAll(body!!.items as Collection<Item>)
                collection.forEach {
                    println(it?.names?.get(0)?.value.toString())
                    println(it?.description)
                }
            }
            override fun onFailure(call: Call<Items?>, t: Throwable) {
                println(t)
            }
        })

When used like above, except the first item, all of them have null descriptions

How to use the wrapper

Hey, i will probably sound as a noob but i cant seem to make this work.
I added the dependency but using "BggServiceFactory.getSearchService()" tells me to create the class BggServiceFactory and i dont know what i need to import to make it work.
Can you please help?
Thanks.

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.