using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WinRT.BxlComponent.UwpWrapper
{
    public sealed class MPosProxyConstant
    {
        public int FontType { get; set; }
        public int Width { get; set; }
        public int Height { get; set; }
        public int Underline { get; set; }
        public int Alignment { get; set; }
        public bool Bold { get; set; }
        public bool Color { get; set; }
        public bool Reverse { get; set; }
        public int CodePage { get; set; }
    }

    public sealed class MPosConnectionInformation
    {
        public int IntefaceType { get; set; }
        public string Name { get; set; }
        public string Address
        {
            get
            {
                if (IntefaceType == 4 /*MPosInterfaceType.MPOS_INTERFACE_BLUETOOTH*/)
                    return MacAddress;
                return IpAddress + ":" + PortNumber;
            }
        }
        public string MacAddress { get; set; }
        public string IpAddress { get; set; }
        public string PortNumber { get; set; }
        public string BluetoohDeviceId { get; set; }
    }
}
