Add a function to retrieve box art for an NvApp

This commit is contained in:
Cameron Gutman 2014-06-29 23:49:06 -07:00
parent 1cdcc6d190
commit ec303e485f

View File

@ -155,6 +155,11 @@ public class NvHTTP {
return pm.pair(uniqueId, pin);
}
public InputStream getBoxArtPng(NvApp app) throws IOException {
return openHttpConnection(baseUrl + "/applist?uniqueid="+uniqueId+"&appid="+
app.getAppId()+"&AssetType=2&AssetIdx=0");
}
public LinkedList<NvApp> getAppList() throws GfeHttpResponseException, IOException, XmlPullParserException {
InputStream in = openHttpConnection(baseUrl + "/applist?uniqueid=" + uniqueId);
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();