コード例 #1
0
        private List <ChildCategory> getChildCategories(long subCategoryId)
        {
            var data = _categoryApi.GetChildCategories(subCategoryId);
            var list = new List <ChildCategory>();
            var arr  = ((JArray)data.Data).Children();

            foreach (var i in arr)
            {
                var item = i.ToObject <ChildCategory>();
                list.Add(item);
            }
            return(list);
        }