// Copyright (c) The LEGO Group. All rights reserved.

namespace LEGO.AsyncAPI.Readers.ParseNodes
{
    using System;
    using LEGO.AsyncAPI.Models;

    internal class AnyFieldMapParameter<T>
    {
        public AnyFieldMapParameter(
            Func<T, AsyncApiAny> propertyGetter,
            Action<T, AsyncApiAny> propertySetter,
            Func<T, AsyncApiSchema> schemaGetter)
        {
            this.PropertyGetter = propertyGetter;
            this.PropertySetter = propertySetter;
            this.SchemaGetter = schemaGetter;
        }

        public Func<T, AsyncApiAny> PropertyGetter { get; }

        public Action<T, AsyncApiAny> PropertySetter { get; }

        public Func<T, AsyncApiSchema> SchemaGetter { get; }
    }
}