Subject: Letting subscribers know you updated your vcard
I'm trying to understand VCards a bit better by reading this page: http://xmpp.org/extensions/xep-0153.html
But i'm having a problem with example 3 on that page.
First of all, here is what I've done:
Example 1, publish avatar data to vcard:
In example 2, the server should respond with a result.
Example 3, including avatar hash in presence data. How do I do this? The parameters in _xmppClient.SendPresence() only allow for Show, status, and priority. How do I include the photo hash, as well as the
Here is the example that is shown in the guide of what I'm needing to send:
Or am I going about this the wrong way? Do I need to manually send the Presence that includes the avatar hash?
But i'm having a problem with example 3 on that page.
First of all, here is what I've done:
Example 1, publish avatar data to vcard:
In example 2, the server should respond with a result.
Example 3, including avatar hash in presence data. How do I do this? The parameters in _xmppClient.SendPresence() only allow for Show, status, and priority. How do I include the photo hash, as well as the
<x xmlns='vcard-temp:x:update'></x>
tags?Here is the example that is shown in the guide of what I'm needing to send:
- <presence from='juliet@capulet.com/balcony'>
- <x xmlns='vcard-temp:x:update'>
- <photo>sha1-hash-of-image</photo>
- </x>
- </presence>
Or am I going about this the wrong way? Do I need to manually send the Presence that includes the avatar hash?
This post was edited on 2016-11-08, 11:33 by Alex.
Edit reason: added code formatting for c# and xml
Edit reason: added code formatting for c# and xml