mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 03:52:48 +00:00
Remove uniqueId parameter from NvHTTP.getServerInfo
This commit is contained in:
parent
67dc2ef9ab
commit
57da68c0e2
@ -102,7 +102,7 @@ public class NvConnection {
|
||||
{
|
||||
NvHTTP h = new NvHTTP(context.serverAddress, uniqueId, null, cryptoProvider);
|
||||
|
||||
String serverInfo = h.getServerInfo(uniqueId);
|
||||
String serverInfo = h.getServerInfo();
|
||||
String serverVersion = h.getServerVersion(serverInfo);
|
||||
if (serverVersion == null || serverVersion.indexOf('.') < 0) {
|
||||
context.connListener.displayMessage("Server major version not present");
|
||||
|
@ -169,7 +169,7 @@ public class NvHTTP {
|
||||
}
|
||||
}
|
||||
|
||||
public String getServerInfo(String uniqueId) throws MalformedURLException, IOException, XmlPullParserException {
|
||||
public String getServerInfo() throws MalformedURLException, IOException, XmlPullParserException {
|
||||
String resp;
|
||||
try {
|
||||
resp = openHttpConnectionToString(baseUrlHttps + "/serverinfo?uniqueid=" + uniqueId, true);
|
||||
@ -192,7 +192,7 @@ public class NvHTTP {
|
||||
|
||||
public ComputerDetails getComputerDetails() throws MalformedURLException, IOException, XmlPullParserException {
|
||||
ComputerDetails details = new ComputerDetails();
|
||||
String serverInfo = getServerInfo(uniqueId);
|
||||
String serverInfo = getServerInfo();
|
||||
|
||||
details.name = getXmlString(serverInfo, "hostname").trim();
|
||||
details.uuid = UUID.fromString(getXmlString(serverInfo, "uniqueid").trim());
|
||||
@ -328,7 +328,7 @@ public class NvHTTP {
|
||||
}
|
||||
|
||||
public PairingManager.PairState getPairState() throws IOException, XmlPullParserException {
|
||||
return pm.getPairState(getServerInfo(uniqueId));
|
||||
return pm.getPairState(getServerInfo());
|
||||
}
|
||||
|
||||
public PairingManager.PairState getPairState(String serverInfo) throws IOException, XmlPullParserException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user