Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
Random_Metro #1
Member since Mar 2012 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: how to send the message?
i could not understand how to send the message ,
here is my code:

var m = new Message("449767208@talk.renren.com","244347529@talk.renren.com");
m.body = "say hello on wp7";
Jid roomJid = new Jid("244347529@talk.renren.com","talk.renren.com","");
xmppClient.MessageFilter.Add(roomJid,new BareJidComparter(),xmppClient_OnMessage);

Mucmanager mm = new MucManager(xmppClient);
if(roomJid != null){
   mm.EnterRoom(roomJid,"testroom");
}
Avatar
Random_Metro #2
Member since Mar 2012 · 6 posts
Group memberships: Members
Show profile · Link to this post
i find the answer, like this:
xmppClient.Send(
    new Message {To = "user2@jabber.org", Type = MessageType.chat, Body = "Hello World"});
Avatar
Alex #3
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
look at the MiniClient example of the desktop version of MatriX. The API is exactly the same, and this example is a complete chat client.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS