Basic integration of Galaxy leaderboard

- Uses http://loopj.com/android-async-http/
- Access and modify constants in GalaxyRestClient
- Instantiate an instance of GalaxyManager to get & post data
- When instantiating a GalaxyManager, pass a listener, or null if not interested in callbacks
This class is used in the gamified Stumbler, please see that branch for examples.

What’s provided here is a starting point for Mozilla to continue working on it, not a full-blown implementation of the new leaderboard.

We actually ran out of budget to implement this leaderboard in the gamified Stumbler, but did some anyways. Garvan wanted some of that work here.

Cheers,
Jeremy

On Sep 22, 2014, at 5:40 PM, Victor Ng <notifications@github.com> wrote:

> In src/org/mozilla/mozstumbler/client/leaderboard/GalaxyManager.java:
> 
> > +
> > +                    @Override
> > +                    public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {
> > +                        super.onFailure(statusCode, headers, throwable, errorResponse);
> > +                        Log.d(TAG, "Error creating game, " + nameOfSlug + ", reason: " + errorResponse.toString());
> > +                    }
> > +
> > +                    @Override
> > +                    public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONArray errorResponse) {
> > +                        super.onFailure(statusCode, headers, throwable, errorResponse);
> > +                        Log.d(TAG, "Error creating game, " + nameOfSlug + ", reason: " + errorResponse.toString());
> > +                    }
> > +                });
> > +    }
> > +
> > +    public void getLeaderboard(final String gameSlug, final String leaderboardSlug) {
> This also looks like dead code.
> 
> —
> Reply to this email directly or view it on GitHub.
>