コード例 #1
0
        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);
        }
コード例 #2
0
        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));
        }