private void OnFlag(bool success, string data) { if (!success || data == null) { Console.WriteLine("The flag POST request for the account " + this.account.ToString() + " failed."); return; } if (data.Contains("flagged")) { Console.WriteLine(this.account.ToString() + " successfully reported the account."); this.chatangoState = CHATANGO_STATE.FLAGGED; } else { Console.WriteLine("The attempt to flag with the account " + this.account.ToString() + " failed."); return; } }
private void OnRecieveAuth(bool success, string data) { if (!success || data == null) { Console.WriteLine("The login POST request for the account " + this.account.ToString() + " failed."); return; } this.authid = Regex.Match(data, @"auth.chatango.com=(.*?);").Groups[1].Value; if (this.authid != string.Empty) { //No need to login ? this.chatangoState = CHATANGO_STATE.READY; } else { Console.WriteLine("The attempt to get an AuthID for the account " + this.account.ToString() + " failed."); return; } }
/* * private void ChOnConnect(SocksProxySocket.Proxy p) * { * Debug.Print("CONNECTED TO CHATANGO SERVER WITH " + p.ToString()); * chatangoState = CHATANGO_STATE; * this.ChSendPacket("tlogin", authid, "2"); * } */ private void ChOnClose() { Debug.Print("CLOSED CONNECTION TO CHATANGO SERVER"); this.chatangoState = CHATANGO_STATE.CLOSED; }
private void OnRecieveAuth(bool success, string data) { if(!success || data == null) { Console.WriteLine("The login POST request for the account " + this.account.ToString() + " failed."); return; } this.authid = Regex.Match(data, @"auth.chatango.com=(.*?);").Groups[1].Value; if(this.authid != string.Empty) { //No need to login ? this.chatangoState = CHATANGO_STATE.READY; } else { Console.WriteLine("The attempt to get an AuthID for the account " + this.account.ToString() + " failed."); return; } }
private void OnFlag(bool success, string data) { if (!success || data == null) { Console.WriteLine("The flag POST request for the account " + this.account.ToString() + " failed."); return; } if(data.Contains("flagged")) { Console.WriteLine(this.account.ToString() + " successfully reported the account."); this.chatangoState = CHATANGO_STATE.FLAGGED; } else { Console.WriteLine("The attempt to flag with the account " + this.account.ToString() + " failed."); return; } }
/* private void ChOnConnect(SocksProxySocket.Proxy p) { Debug.Print("CONNECTED TO CHATANGO SERVER WITH " + p.ToString()); chatangoState = CHATANGO_STATE; this.ChSendPacket("tlogin", authid, "2"); } */ private void ChOnClose() { Debug.Print("CLOSED CONNECTION TO CHATANGO SERVER"); this.chatangoState = CHATANGO_STATE.CLOSED; }