mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-25 22:13:04 +00:00
Cleans up some unnecessary code in `NvHTTP` and DRY's it up a bit. Adds in a `getAppList` function which returns a list of `NvApp`, a class used to represent applications. This is then used by `getSteamAppId` so it actually opens up Steam instead of whatever the first app is.
32 lines
550 B
Java
32 lines
550 B
Java
package com.limelight.nvstream;
|
|
|
|
public class NvApp {
|
|
private String appName;
|
|
private int appId;
|
|
private boolean isRunning;
|
|
|
|
public void setAppName(String appName) {
|
|
this.appName = appName;
|
|
}
|
|
|
|
public void setAppId(String appId) {
|
|
this.appId = Integer.parseInt(appId);
|
|
}
|
|
|
|
public void setIsRunning(String isRunning) {
|
|
this.isRunning = isRunning.equals("1");
|
|
}
|
|
|
|
public String getAppName() {
|
|
return this.appName;
|
|
}
|
|
|
|
public int getAppId() {
|
|
return this.appId;
|
|
}
|
|
|
|
public boolean getIsRunning() {
|
|
return this.isRunning;
|
|
}
|
|
}
|