Subject: Convert Iq to Custom Iq
Hi,
Previously i follow the tutorial and implement this code.
but when i try to convert the Iq to WeatherIq it won't works.
is theres something missing? how do i convert from Iq to WeatherIq?
Previously i follow the tutorial and implement this code.
void xmppCon_OnIq(object sender, IqEventArgs e)
{
if (e.Iq.Query is Weather)
{
var weather = e.Iq.Query as Weather;
}
}
{
if (e.Iq.Query is Weather)
{
var weather = e.Iq.Query as Weather;
}
}
but when i try to convert the Iq to WeatherIq it won't works.
void xmppCon_OnIq(object sender, IqEventArgs e)
{
if (e.Iq is WeatherIq)
{
var weatherIq = e.Iq as WeatherIq;
}
}
{
if (e.Iq is WeatherIq)
{
var weatherIq = e.Iq as WeatherIq;
}
}
is theres something missing? how do i convert from Iq to WeatherIq?
tambunanw
Show profile
Link to this post