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

namespace skyscraper8.SatIp
{
	internal abstract class RtspResponse : Validatable
	{
		private readonly string statusLine;
		protected readonly Dictionary<string, string> args;
		protected readonly byte[] payload;

		protected RtspResponse(RtspResponseHeader header)
		{
			RtspVersion = header.rtspVersion;
			RtspStatusCode = header.statusCode;
			statusLine = header.statusLine;
			args = header.kv;
			payload = header.payload;
			Valid = true;
		}
		

		public ushort RtspStatusCode { get; private set; }

		public Version RtspVersion { get; private set; }
	}
}
