Unknown opened 4 years ago
|
|
|
|
There is already 'VCardModule' in Halcyon. You can use it to retrieve vcards. It doesn't have all field you asked for. I'm adding those fields, but I found problem, because data structures and helper methods was prepared for getting information from vcards, not for setting. So I'm working on VCardBuilder. |
|
But we not always want to change a whole vcard, we may want to "update" parts of it by editing only some fields. Would it mean that with |
|
Thank you Bartek. First, we need support to retrieve vcard and all required fields. Setting vcard will also be needed but at later time. |
|
Implemented. Documentation is here. |
|
Thank you. I can use the current implementation and write the code as in examples. However, I am a bit confused as to which API to use. From initial examples and documentation the library seems to prefer convention to register handlers for a specific event. Then send a request and expect a call back on the registered handler. The examples linked above show a bit different way to provide handler directly in the request call. Why is this difference? Which way is preferred or recommended? Does the VCardModule allow for registering the handler for vCard requests? |
|
Handlers registration is for accepting events triggered by incoming stanzas, ie. incoming |
|
Hm, ok, this makes sense. Thank you for explanation. |
|
Do I need to register handler for vCard module at all? |
|
Do you need to? No, but you should. VCard4 is PEP-based, so you may receive PubSub notification that new VCard was published and for that registered handler will be called. |
|
Ok, understand. Thanks a lot. |
|
All works as expected. |
We require the following, minimum content supported in vCards for contacts:
As for the firstName/lastName I am not sure how related to this is currently supported
structuredName
andformattedName
. Maybe this would be enough and we do not need first/last names. I am not sure at this point.