public Chat(JID inToJId, JabberClient inConnection)
{
this.Connection = inConnection;
this.Connection.OnMessage += (s, m) => {
if (this.Translator != null) {
this.Translator.ProcessMessage(this, m);
}
};
this.Connection.OnError += (s, ex) => {
if (this.Translator != null) {
}
};
this.ToJId = inToJId;
this.FromId = new JID(
this.Connection.User, this.Connection.NetworkHost, this.Connection.Resource
);
}