mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 19:42:45 +00:00
Add a function to retrieve box art for an NvApp
This commit is contained in:
parent
1cdcc6d190
commit
ec303e485f
@ -155,6 +155,11 @@ public class NvHTTP {
|
|||||||
return pm.pair(uniqueId, pin);
|
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 {
|
public LinkedList<NvApp> getAppList() throws GfeHttpResponseException, IOException, XmlPullParserException {
|
||||||
InputStream in = openHttpConnection(baseUrl + "/applist?uniqueid=" + uniqueId);
|
InputStream in = openHttpConnection(baseUrl + "/applist?uniqueid=" + uniqueId);
|
||||||
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
|
XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user