private static string LauncherInfoRequest(string infoType, int serverID = 1) { try { InfoResp infoResp = FilterRestClient.RestInfoReq(serverID, infoType); return(infoResp.Info); } catch { return(null); } }
/// <summary> /// Checks FilterLauncher for valid response to determine if connection issues exist /// </summary> /// <returns> /// Returns whether or not the server is accessible /// true/false /// </returns> public static bool ServerAccessible(bool checkFallback = false) { try { InfoResp pingResp = FilterRestClient.RestPing(); return(pingResp.Info.Equals("Pong")); } catch { return(false); } }