//
// 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.ServiceLayer.Hosting.Protocol.Contracts;
namespace Microsoft.SqlTools.ServiceLayer.Connection.Contracts
{
///
/// Message format for the initial connection request
///
public class ConnectionDetails
{
///
/// Gets or sets the connection server name
///
public string ServerName { get; set; }
///
/// Gets or sets the connection database name
///
public string DatabaseName { get; set; }
///
/// Gets or sets the connection user name
///
public string UserName { get; set; }
///
/// Gets or sets the connection password
///
///
public string Password { get; set; }
}
///
/// Message format for the connection result response
///
public class ConnectionResult
{
///
/// Gets or sets the connection id
///
public int ConnectionId { get; set; }
///
/// Gets or sets any connection error messages
///
public string Messages { get; set; }
}
///
/// Connect request mapping entry
///
public class ConnectionRequest
{
public static readonly
RequestType Type =
RequestType.Create("connection/connect");
}
}