Subject: Class design. Iq result object null
Hi Alex,
I'm trying implement a class based in your weather example.
All works fine but after get the iq.element the object (my class) is always null.
Stanza with result:
Function Callback:
What is wrong in my code?...
Thanks.
I'm trying implement a class based in your weather example.
All works fine but after get the iq.element the object (my class) is always null.
Stanza with result:
- <iq id="MX_4" type="result" to="10000004@im.xxxxx.com/MatriX" xmlns="jabber:client" from="boot_test@im.xxxxx.com/MatriX">
- <meep xmlns="A21:meep">
- <nombre>test</nombre>
- <respuesta>1</respuesta>
- </meep>
- </iq>
Function Callback:
- private void SampleResponse(object sender, IqEventArgs e)
- {
- var iq = e.Iq;
- if (iq.Type == IqType.result)
- {
- var meep = iq.Element<Meep>();
- {
- var nombre = e.State as string;
- ....
- }
- }
- else if (iq.Type == IqType.error)
- {
- // process errors here
- }
- }
What is wrong in my code?...
Thanks.