use of org.musicbrainz.mobile.async.external.result.WikipediaBio in project musicbrainz-android by jdamcd.
the class WikipediaClient method parseResult.
private String parseResult(InputStream stream) {
Reader reader = new InputStreamReader(stream);
JsonObject obj = new JsonParser().parse(reader).getAsJsonObject();
WikipediaBio response = new Gson().fromJson(obj.get("mobileview"), WikipediaBio.class);
return response.sections.get(0).text;
}
Aggregations