// // 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; using Microsoft.SqlTools.DataProtocol.Contracts.Connection; namespace Microsoft.SqlTools.DataProtocol.Contracts.Explorer { /// /// Information returned from a . /// Contains success information, a to be used when /// requesting expansion of nodes, and a root node to display for this area. /// public class CreateSessionResponse { /// /// Unique ID to use when sending any requests for objects in the /// tree under the node /// public string SessionId { get; set; } } /// /// Information returned from a . /// Contains success information, a to be used when /// requesting expansion of nodes, and a root node to display for this area. /// public class SessionCreatedParameters { /// /// Boolean indicating if the connection was successful /// public bool Success { get; set; } /// /// Unique ID to use when sending any requests for objects in the /// tree under the node /// public string SessionId { get; set; } /// /// Information describing the base node in the tree /// public NodeInfo RootNode { get; set; } /// /// Error message returned from the engine for a object explorer session failure reason, if any. /// public string ErrorMessage { get; set; } } /// /// Session notification mapping entry /// public class CreateSessionCompleteNotification { public static readonly EventType Type = EventType.Create("explorer/sessioncreated"); } }