NASAExplorer.Services.HorizonInterface.HorizonInterface C# (CSharp) Method

HorizonInterface() public method

public HorizonInterface ( ) : System
return System
        public HorizonInterface()
        {
            Conn = new TelnetConnection(HOST, PORT);
            Now = DateTime.Now;
            Next = Now.AddHours(1);

            _cmds = new Dictionary<int, KeyValuePair<string, string>>();
            _cmds.Add(0, new KeyValuePair<string, string>("<cr>:", "E"));
            _cmds.Add(1, new KeyValuePair<string, string>("[o,e,v,?] :", "v"));
            _cmds.Add(2, new KeyValuePair<string, string>("[ <id>,coord,geo ] :", String.Format("{0}", CENTER)));
            _cmds.Add(3, new KeyValuePair<string, string>("[ y/n ] -->", "y"));
            _cmds.Add(4, new KeyValuePair<string, string>("[eclip, frame, body ] :", "eclip"));
            _cmds.Add(5, new KeyValuePair<string, string>("] :", String.Format("{0}", Now.ToString("yyyy-MMM-dd hh:mm"))));
            _cmds.Add(6, new KeyValuePair<string, string>("] :", String.Format("{0}", Next.ToString("yyyy-MMM-dd hh:mm"))));
            _cmds.Add(7, new KeyValuePair<string, string>("? ] :", "1h"));
            _cmds.Add(8, new KeyValuePair<string, string>("?] :", "n"));
            _cmds.Add(9, new KeyValuePair<string, string>("[J2000, B1950] :", "J2000"));
            _cmds.Add(10, new KeyValuePair<string, string>("LT+S ]  :", "1"));
            _cmds.Add(11, new KeyValuePair<string, string>("3=KM-D] :'", "2"));
            _cmds.Add(12, new KeyValuePair<string, string>("YES, NO ] :'", "YES"));
            _cmds.Add(13, new KeyValuePair<string, string>("YES, NO ] :'", "NO"));
            _cmds.Add(14, new KeyValuePair<string, string>("[ 1-6, ?  ] :'", "1"));
        }

Same methods

HorizonInterface::HorizonInterface ( System.DateTime start, System.DateTime end ) : System