using System;
using System.Xml;
///!!!
using System.Text;
using System.IO;

namespace WS2Client
{
	/// <summary>
	/// Summary description for OutParams.
	/// </summary>
	public class OutParamsShared
	{
		private int _request_id;
		private XmlNode _result;
		private string _rqstate_code;
		private string _rqstate_desc;

		public OutParamsShared(int a_rqid, XmlNode a_result, string a_rqstate_code, string a_rqstate_desc)
		{
			_request_id = a_rqid;
			_result = a_result;
			_rqstate_code = a_rqstate_code;
			_rqstate_desc = a_rqstate_desc;

//            log(String.Concat("a_rqid=", Convert.ToString(a_rqid)));///!!!
//            log(String.Concat("a_rqstate_code=", a_rqstate_code));///!!!
//            log(String.Concat("a_rqstate_desc=", a_rqstate_desc));///!!!
//            log(String.Concat("a_result=", Convert.ToString(a_result)));///!!!

		}

		public int RequestID
		{
			get {return _request_id;}
		}

		public XmlNode Result
		{
			get {return _result;}
		}

		public string RQStateCode
		{
			get {return _rqstate_code;}
		}

		public string RQStateDesc
		{
			get {return _rqstate_desc;}
		}

        ///!!!
		private void log(string text) {
			TextWriter tw=new StreamWriter("log.txt",true);
            tw.WriteLine("[" + DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToLongTimeString() + "].OutParamsShared: " + text);
			tw.Flush();
			tw.Close();
		}
	}
}
