private bool GetLongPollServerConnectionData()
{
XmlDocument xdoc = new XmlDocument();
xdoc.LoadXml(this.manager.Method("messages.getLongPollServer").Execute().GetResponseString());
if (xdoc.SelectSingleNode("/error") == null && xdoc.InnerText != "")
{
this.Key = xdoc.SelectSingleNode("/response/key").InnerText;
this.Server = xdoc.SelectSingleNode("/response/server").InnerText;
this.LastEventId = Convert.ToInt32(xdoc.SelectSingleNode("/response/ts").InnerText);
return true;
}
return false;
}