//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//
using System.Net;
namespace Microsoft.SqlTools.ResourceProvider.Core.Firewall
{
///
/// The response that's created by firewall rule parser
///
public class FirewallParserResponse
{
public FirewallParserResponse(bool firewallRuleErrorDetected, IPAddress blockedIpAddress)
{
FirewallRuleErrorDetected = firewallRuleErrorDetected;
BlockedIpAddress = blockedIpAddress;
}
public FirewallParserResponse()
{
FirewallRuleErrorDetected = false;
}
///
/// Returns true if firewall rule is detected, otherwise returns false.
///
public bool FirewallRuleErrorDetected
{
get; private set;
}
///
/// Returns the blocked ip address if firewall rule is detected
///
public IPAddress BlockedIpAddress
{
get; private set;
}
}
}