[Test] public void Test_Create() { JID j = new JID("foo", "kixeye.jabber.com", "there"); Assert.AreEqual("[email protected]/there", j.ToString()); j = new JID(null, "kixeye.jabber.com", null); Assert.AreEqual("kixeye.jabber.com", j.ToString()); j = new JID("foo", "kixeye.jabber.com", null); Assert.AreEqual("*****@*****.**", j.ToString()); j = new JID(null, "kixeye.jabber.com", "there"); Assert.AreEqual("kixeye.jabber.com/there", j.ToString()); }
private void m_pres_OnPrimarySessionChange(object sender, JID bare) { Presence pres = m_pres[bare]; LinkedList nodelist = (LinkedList) m_items[bare.ToString()]; if (nodelist == null) return; foreach (ItemNode n in nodelist) { n.ChangePresence(pres); } }