예제 #1
0
        public async Task <JsonContentDetail> JsonContentDetail(int?contentId)
        {
            var text = await ZipFileHelper.ReadStringFromFile(new FileInfo(LocalSourceDataFile), $"detail_{contentId}.json");

            return(JsonConvert.DeserializeObject <JsonContentDetail>(text));
        }
예제 #2
0
        public async Task <JsonContentSummaries> JsonContentSummaries()
        {
            var text = await ZipFileHelper.ReadStringFromFile(new FileInfo(LocalSourceDataFile), "summaries.json");

            return(JsonConvert.DeserializeObject <JsonContentSummaries>(text));
        }
        public async Task <JsonContentSummaries> JsonContentSummaries()
        {
            var text = await ZipFileHelper.ReadStringFromFile(_contentsDataFile, "summaries.json");

            return(JsonConvert.DeserializeObject <JsonContentSummaries>(text));
        }