ApiCore.Wall.WallFactory.Get C# (CSharp) Метод

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

Get wall entries
public Get ( int ownerId, int count, int offset, string filter ) : List
ownerId int if null - wall entries for current user will be returned, else - for specified user
count int messages count. null allowed
offset int message offset. null allowed
filter string
Результат List
        public List<WallEntry> Get( int? ownerId, int? count, int? offset, string filter)
        {
            this.Manager.Method("wall.get");
            if (ownerId != null)
            {
                this.Manager.Params("owner_id", ownerId);
            }
            if (offset != null)
            {
                this.Manager.Params("offset", offset);
            }
            if (count != null)
            {
                this.Manager.Params("count", count);
            }
            if (filter != null)
            {
                this.Manager.Params("filter", filter);
            }
            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;
                }

                this.PostsCount = Convert.ToInt32(x.SelectSingleNode("/response/count").InnerText);

                return this.buildEntryList(x);
            }
            return null;
        }