public QlikSenseQrsAbout GetQrsAbout(SenseApiSupport senseApiSupport, SenseEnums senseEnums) { var serverNodeConfigJson = GetSenseResponse("4242/qrs/about", senseApiSupport); var qlikSenseQrsAbout = new QlikSenseQrsAbout { BuildVersion = _jsonHelper.GetString(serverNodeConfigJson, "buildVersion"), BuildDate = _jsonHelper.GetString(serverNodeConfigJson, "buildDate"), DatabaseProvider = _jsonHelper.GetString(serverNodeConfigJson, "databaseProvider"), NodeType = _jsonHelper.GetInt(serverNodeConfigJson, "nodeType") }; return(qlikSenseQrsAbout); }
public QlikSenseQrsAbout GetQrsAbout(SenseApiSupport senseApiSupport, SenseEnums senseEnums) { dynamic serverNodeConfigJson = senseApiSupport.RequestWithResponse( ApiMethod.Get, $"https://{senseApiSupport.Host}:4242/qrs/about", null, null, HttpStatusCode.OK, JToken.Parse); //foreach (dynamic serverNodeStruct in serverNodeConfigJson) //{ //var a = serverNodeConfigJson.nodeType; var qlikSenseQrsAbout = new QlikSenseQrsAbout { BuildVersion = GetString(serverNodeConfigJson, "buildVersion"), BuildDate = GetString(serverNodeConfigJson, "buildDate"), DatabaseProvider = GetString(serverNodeConfigJson, "databaseProvider"), NodeType = GetInt(serverNodeConfigJson, "nodeType") }; return(qlikSenseQrsAbout); }