﻿using System.Xml.Serialization;

namespace CSharpinator
{
    [XmlRoot("ListClass")]
    public class ListClassProxy : ClassProxy
    {
        public ClassProxy Class { get; set; }

        public static ListClassProxy FromListClass(ListClass listClass)
        {
            return new ListClassProxy
            {
                Class = FromClass(listClass.Class)
            };
        }

        public static ListClass ToListClass(ListClassProxy listClassProxy, IRepository repository, IFactory factory)
        {
            return ListClass.FromClass(listClassProxy.Class.ToClass(repository, factory));
        }
    }
}
