//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using Microsoft.SqlTools.Hosting.Contracts;
namespace Microsoft.SqlTools.DataProtocol.Contracts.Explorer
{
///
/// Information returned from a .
///
public class ExpandResponse
{
///
/// Unique ID to use when sending any requests for objects in the
/// tree under the node
///
public string SessionId { get; set; }
///
/// Information describing the expanded nodes in the tree
///
public NodeInfo[] Nodes { get; set; }
///
/// Path identifying the node to expand. See for details
///
public string NodePath { get; set; }
///
/// Error message returned from the engine for a object explorer expand failure reason, if any.
///
public string ErrorMessage { get; set; }
}
///
/// Parameters to the .
///
public class ExpandParams
{
///
/// The Id returned from a . This
/// is used to disambiguate between different trees.
///
public string SessionId { get; set; }
///
/// Path identifying the node to expand. See for details
///
public string NodePath { get; set; }
}
///
/// A request to expand a node in the tree
///
public class ExpandRequest
{
///
/// Returns children of a given node as a array.
///
public static readonly
RequestType Type =
RequestType.Create("explorer/expand");
}
///
/// Expand notification mapping entry
///
public class ExpandCompleteNotification
{
public static readonly
EventType Type =
EventType.Create("explorer/expandCompleted");
}
}