﻿using System;
using System.Collections.Generic;
using System.Globalization;
using Our.Umbraco.Ditto;
using Umbraco.Core.Models;

namespace TableTop.Repository.CMS.Interfaces
{
    public interface IDittoService
    {
        IEnumerable<T> ContentAs<T>(IEnumerable<IPublishedContent> content, CultureInfo culture = null, IEnumerable<DittoProcessorContext> processorContexts = null, Action<DittoConversionHandlerContext> onConverting = null, Action<DittoConversionHandlerContext> onConverted = null) where T : class;
        T ContentAs<T>(IPublishedContent content, CultureInfo culture = null, T instance = null, IEnumerable<DittoProcessorContext> processorContexts = null, Action<DittoConversionHandlerContext> onConverting = null, Action<DittoConversionHandlerContext> onConverted = null) where T : class;
    }
}