/// <summary>
        /// Initializes a new instance of the <see cref="ContentItem"/> class with the specified JSON data.
        /// </summary>
        /// <param name="source">The JSON data of the content item to deserialize.</param>
        /// <param name="modularContentSource">The JSON data of modular content to deserialize.</param>
        /// <param name="client">The client that retrieved the content item.</param>
        internal ContentItem(JToken source, JToken modularContentSource, DeliveryClient client)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            if (modularContentSource == null)
            {
                throw new ArgumentNullException(nameof(modularContentSource));
            }

            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            _source = source;
            _modularContentSource = modularContentSource;
            _client = client;
        }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="CodeFirstModelProvider"/>.
 /// </summary>
 public CodeFirstModelProvider(DeliveryClient client)
 {
     _client = client;
 }
 internal DeliveryItemResponse(JToken response, DeliveryClient client)
 {
     _response = response;
     _client   = client;
 }