//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

using System.Collections.Generic;
using Microsoft.SqlTools.Hosting.Protocol.Contracts;

namespace Microsoft.Kusto.ServiceLayer.Scripting.Contracts
{
    /// <summary>
    /// Parameters to indicate the script operation has resolved the objects to be scripted.
    /// </summary>
    public class ScriptingPlanNotificationParams : ScriptingEventParams
    {
        /// <summary>
        /// Gets or sets the list of database objects whose progress has changed.
        /// </summary>
        public List<ScriptingObject> ScriptingObjects { get; set; }

        /// <summary>
        /// Gets or sets the count of database objects whose progress has changed.
        /// </summary>
        public int Count { get; set; }
    }

    /// <summary>
    /// Event sent to indicate a script operation has determined which objects will be scripted.
    /// </summary>
    public class ScriptingPlanNotificationEvent
    {
        public static readonly EventType<ScriptingPlanNotificationParams> Type = EventType<ScriptingPlanNotificationParams>.Create("scripting/scriptPlanNotification");
    }
}
