Subject: Matrix.vNext Lib is missing Matrix.Xmpp.Client.TimeIq class
This lib is all new to me and have only spent about half a day using it with no knowledge of XMPP so I could be doing something wrong. I have the following code that works for VersionIq and tried to copy it for TimeIq (that doesn't exist).
When I tried to do this with for TimeIq but it doesn't work because the TimeIq class doesn't exist anywhere in the Matrix namespace tree.
Please point me in the right direction if I am missing something. I am using Matrix.vNext Version 1.0.6 and did a "Install-Package Matrix.vNext -Version 1.0.6" to get it.
Thanks,
SLDR
(Stephen L. De Rudder)
- x.XmppXElementStreamObserver
- .Where(el => el.OfType<Iq>()
- && el.Cast<Iq>().Type == IqType.Get
- && el.Cast<Iq>().Query.OfType<Matrix.Xmpp.Version.Version>())
- .Subscribe(el =>
- {
- Iq iq = el.Cast<Iq>();
- VersionIq resIq = Factory.GetElement<VersionIq>();
- resIq.Id = iq.Id;
- resIq.From = iq.To;
- resIq.To = iq.From;
- resIq.Type = IqType.Result;
- v.Name = "SLDR EMailIM";
- v.Os = "Windows";
- v.Ver = "SLDR EMailIM V0.22";
- resIq.Version = v;
- x.SendAsync(resIq).Wait();
- Console.WriteLine(resIq.ToString());
- });
When I tried to do this with for TimeIq but it doesn't work because the TimeIq class doesn't exist anywhere in the Matrix namespace tree.
- x.XmppXElementStreamObserver
- .Where(el => el.OfType<Iq>()
- && el.Cast<Iq>().Type == IqType.Get
- && el.Cast<Iq>().Query.OfType<Matrix.Xmpp.Time.Time>())
- .Subscribe(el =>
- {
- Iq iq = el.Cast<Iq>();
- TimeIq resIq = Factory.GetElement<TimeIq>();
- resIq.Id = iq.Id;
- resIq.From = iq.To;
- resIq.To = iq.From;
- resIq.Type = IqType.Result;
- resIq.Time = t;
- x.SendAsync(resIq).Wait();
- Console.WriteLine(resIq.ToString());
- });
Please point me in the right direction if I am missing something. I am using Matrix.vNext Version 1.0.6 and did a "Install-Package Matrix.vNext -Version 1.0.6" to get it.
Thanks,
SLDR
(Stephen L. De Rudder)
This post was edited 2 times, last on 2018-02-24, 11:36 by Alex.