I’‘m currently trying to implement url=http://www.jabber.org/jeps/jep-0092.htmlJEP 92[/url]. I know which xml I have to send and what to expect to receive, but how would I go about to implement this in Smack? I suppose I’‘ll have to add this to the smackx package, but the provider/packet structure isn’‘t too clear to me. I’‘d appreciate it if you’'d correct me here.
If I’'m correct, I have to add this to the smack.providers file:
Next, I’'ll be creating that Version class which extends IQ. The method I have to make sure to override is getChildElementXML which in this case would contain:
The Version constructor would initialize these values.
To ask for someone’'s version, I would use:
Time timeRequest = new Time();
But how exactly do I know when to reply to a version query myself?