Пример #1
0
        private static async Task <List <ContentItem> > GetCloudItemsAsync(string projectId, IEnumerable <IQueryParameter> parameters)
        {
            var deliveryClient = DeliveryClientHelpers.GetDeliveryClient(projectId);
            DeliveryItemListingResponse response = await deliveryClient.GetItemsAsync(parameters);

            return(response?.Items.ToList());
        }
Пример #2
0
        private static async Task <ContentItem> GetCloudItemAsync(string projectId, string codename, IEnumerable <IQueryParameter> parameters)
        {
            var deliveryClient            = DeliveryClientHelpers.GetDeliveryClient(projectId);
            DeliveryItemResponse response = await deliveryClient.GetItemAsync(codename, parameters);

            return(response?.Item);
        }