ApiCore.Messages.MessagesFactory.GetHistory C# (CSharp) Метод

GetHistory() публичный Метод

Gets the messages history
public GetHistory ( int userId, int offset, int count ) : List
userId int from user
offset int offset. null allowed
count int count messages to be returned. null allowed
Результат List
        public List<Message> GetHistory(int userId, int? offset, int? count)
        {
            this.Manager.Method("messages.getHistory");
            this.Manager.Params("uid", userId);
            if (offset != null)
            {
                this.Manager.Params("offset", offset);
            }
            if (count != null)
            {
                this.Manager.Params("count", count);
            }
            string resp = this.Manager.Execute().GetResponseString();
            if (this.Manager.MethodSuccessed)
            {
                XmlDocument x = this.Manager.GetXmlDocument(resp);
                if (x.SelectSingleNode("/response").InnerText.Equals("0"))
                {
                    return null;
                }

                return this.buildMessagesList(x, MessageType.History);
            }
            return null;
        }