using skyscraper8.Ietf.FLUTE;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace skyscraper8.DvbNip.UiIntegration
{
	public class FluteUiHandle
	{
		public FluteUiHandle(NipActualCarrierInformation carrier, FluteListener listener)
		{
			this.Carrier = carrier;
			this.DestinationAddress = listener.DestinationAddress;
			this.DestinationPort = listener.DestinationPort;
			this.DestinationTsi = listener.DestinationTsi;
			this.DestinationToi = listener.DestinationToi;
			this.FileAssociation = listener.FileAssociation;
		}

		public NipActualCarrierInformation Carrier { get; }
		public IPAddress DestinationAddress { get; }
		public ushort DestinationPort { get; }
		public ulong DestinationTsi { get; }
		public ulong DestinationToi { get; }
		public FileType FileAssociation { get; }
	}
}
