using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Settings;
using Tango.Transport.Adapters;
using Tango.Transport.Discovery;
namespace Tango.Integration
{
public class IntegrationSettings : SettingsBase
{
///
/// Gets or sets the external bridge service port.
///
public int ExternalBridgeServicePort { get; set; }
///
/// Gets or sets the external bridge service discovery port.
///
public int ExternalBridgeServiceDiscoveryPort { get; set; }
///
/// Gets or sets the external bridge multi-cast group address.
///
public String ExternalBridgeMulticastGroup { get; set; }
///
/// Gets or sets the discovery method.
///
public DiscoveryMethod ExternalBridgeDiscoveryMethod { get; set; }
///
/// Gets or sets the name of the embedded device.
///
public String EmbeddedDeviceName { get; set; }
///
/// Gets or sets a value indicating whether filter the detected USB machines via .
///
public bool FilterExternalBridgeUsbMachines { get; set; }
///
/// Gets or sets the last virtual machine baud rate.
///
public UsbSerialBaudRates EmbeddedSerialBaudRate { get; set; }
///
/// Gets or sets the firmware TCP IP address when using TCP/IP as the communication method with the embedded device.
///
public String FirmwareIPAddress { get; set; }
///
/// Gets or sets the firmware TCP IP port when using TCP/IP as the communication method with the embedded device.
///
public int FirmwarePort { get; set; }
///
/// Initializes a new instance of the class.
///
public IntegrationSettings()
{
ExternalBridgeServicePort = 1984;
ExternalBridgeServiceDiscoveryPort = 8888;
ExternalBridgeMulticastGroup = "234.55.66.77";
ExternalBridgeDiscoveryMethod = DiscoveryMethod.Multicast;
EmbeddedDeviceName = "Tango USB Serial Port";
FilterExternalBridgeUsbMachines = false;
EmbeddedSerialBaudRate = UsbSerialBaudRates.BR_115200;
FirmwareIPAddress = "10.0.0.3";
FirmwarePort = 30000;
}
}
}