Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
david.felix #1
Member since Jul 2015 · 23 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to use agsxmpp message receipt
Hi!
Please i want to know how to use the agsxmpp request receipt. I saw the extension documentation on xmpp extension site but i don't know how to interpret xmpp extension format. Please i will be very grateful if anybody could help me out.

Thanks.
Avatar
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
see here:
http://forum.ag-software.net/thread/1454-How-to-use-XEP-01…

you use the following 2 classes in the agsXMPP.protocol.extensions.msgreceipts namespace
  • Request
  • Received

one to request a receipt, and the other one to acknowlede the delivery.

Alex
Avatar
david.felix #3
Member since Jul 2015 · 23 posts
Group memberships: Members
Show profile · Link to this post
Thanks a lot. But which two objects do i need to add to my message? Please how do i add it to the message i am sending out? One again thanks a lot for the fast and helpful reply.
This post was edited on 2015-07-30, 11:27 by david.felix.
Avatar
Alex #4
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I posted it above and linked to a thread with an example.

To request a receipt for a message you add this to your message:
  1. msg.Add(new Request());

to deliver a receipt for a message you send a message to the sender and add:
  1. msg.Add(new Received{ Id = msgOriginal.Id});
Avatar
david.felix #5
Member since Jul 2015 · 23 posts
Group memberships: Members
Show profile · Link to this post
Thanks a lot for the fast and helpful response. I am very grateful.
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: agsXMPP RSS