public async Task <JsonDataVersions> JsonDataVersions() => await HttpDataProviderHelper.Get <JsonDataVersions>(HttpDataProviderHelper.Uri(code: "Versions.json"));
public async Task <IEnumerable <(JsonContentSummary summary, JsonContentDetail detail)> > JsonContentSummariesAndDetails() { _fileStrage.WriteAllBytes(_contentsDataFile, await HttpDataProviderHelper.GetByteArray(HttpDataProviderHelper.Uri(code: "ContentsData.zip"))); var q = new Queue <(JsonContentSummary, JsonContentDetail)>(); var summaries = await JsonContentSummaries(); foreach (var summary in summaries?.ContentSummaries) { if (string.IsNullOrEmpty(summary.ContentCategoryLargeId)) { summary.ContentCategoryLargeId = summary.ContentCategoryLargeList?.Select(c => c.ContentCategoryLargeId.ToString()).FirstOrDefault(); } q.Enqueue((summary, await JsonContentDetail(summary.ContentId))); } return(q.ToArray()); }