private Program()
        {
            ConnectionDetails condetails = new ConnectionDetails();
            condetails.ReadConfigFile();

            m_Client = new Irc();
            m_Client.SetConnectionDetails(condetails);
            m_Client.SetChannelMessageHandler(onMessage);
            m_Client.Connect();
            ConnectionDetails cd = new ConnectionDetails();
            cd.ReadConfigFile();
            // this will break...
            TwitchIRC.WebApi.WebApiRequest.Instance.SetChannelDetails("mrgalski", cd.Password, new TwitchIRC.WebApi.Channels.Channel()
            {
                status = "test from the API",
                delay = 0,
                game = "Programming"
            });
            TwitchIRC.WebApi.WebApiRequest.Instance.GetChannelInfo(cd.Password);
        }
Beispiel #2
0
 /// <summary>
 /// Sets up the connection details used
 /// that will be then used to connect
 /// to the IRC server
 /// </summary>
 /// <param name="p1">Connection details</param>
 public void SetConnectionDetails(ConnectionDetails p1)
 {
     m_ConnectionDetails = p1;
 }