public IEnumerable <QlikSenseComponent> GetAboutComponents(SenseApiSupport senseApiSupport, SenseEnums senseEnums) { var senseComponentsJson = GetSenseResponse("9032/v1/components", senseApiSupport); foreach (dynamic component in senseComponentsJson) { var senseComponent = new QlikSenseComponent { Component = _jsonHelper.GetString(component, "component"), Version = _jsonHelper.GetString(component, "version") }; yield return(senseComponent); } }
public IEnumerable <QlikSenseComponent> GetAboutComponents(SenseApiSupport senseApiSupport, SenseEnums senseEnums) { dynamic senseComponentsJson = senseApiSupport.RequestWithResponse( ApiMethod.Get, $"https://{senseApiSupport.Host}:9032/v1/components", null, null, HttpStatusCode.OK, JToken.Parse); foreach (dynamic component in senseComponentsJson) { var senseComponent = new QlikSenseComponent { Component = GetString(component, "component"), Version = GetString(component, "version") }; yield return(senseComponent); } }