ApiCore.Messages.LongPollServerConnection.GetLongPollServerConnectionData C# (CSharp) Метод

GetLongPollServerConnectionData() приватный Метод

Method, that received LongPoll server connecion info
private GetLongPollServerConnectionData ( ) : bool
Результат bool
        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;
        }