public static List <WadoDataSetModel> ReadJsonObjects(Stream stm) { var tables = JsonObjectReader.ReadJsonObjects(stm, _prp); var models = new List <WadoDataSetModel>(); foreach (var table in tables) { var model = WadoDataSetModelFactory.FromProperties(table); models.Add(model); } return(models); }
internal async Task <List <WadoDataSetModel> > InstanceLevel(WadoDataSetModel query) { var stm = await RestClient.queryJson(UrlBuilder.Combine(ServiceConfig.QidoRsServiceUrl, WadoDataSetConverter.ToQidoQueryUrl(query, "instance"))); return(WadoDataSetModelFactory.ReadJsonObjects(stm)); }