public BlogsApiResult GetAll(int? groupId = default(int), bool? includeSubGroups = default(bool), BlogSortBy sortBy = BlogSortBy.SortOrder, SortOrder sortOrder = SortOrder.Ascending, int? ownerUserId = default(int), int? pageSize = default(int), int? pageIndex = null)
        {
            var url = groupId.HasValue
                ? string.Format("api.ashx/v2/groups/{0}/blogs.json", groupId.Value)
                : "api.ashx/v2/blogs.json";

            var parameters = new[]
            {
                new RequestParameter("SortOrder", sortOrder),
                new RequestParameter("SortBy", sortBy),
                new RequestParameter("IncludeSubGroups", includeSubGroups),
                new RequestParameter("OwnerUserId", ownerUserId),
                new RequestParameter("PageSize", pageSize),
                new RequestParameter("PageIndex", pageIndex)
            };

            return GetResult<BlogsApiResult>(url);
        }
Exemplo n.º 2
0
        public BlogsApiResult GetAll(int?groupId = default(int), bool?includeSubGroups = default(bool), BlogSortBy sortBy = BlogSortBy.SortOrder, SortOrder sortOrder = SortOrder.Ascending, int?ownerUserId = default(int), int?pageSize = default(int), int?pageIndex = null)
        {
            var url = groupId.HasValue
                ? string.Format("api.ashx/v2/groups/{0}/blogs.json", groupId.Value)
                : "api.ashx/v2/blogs.json";

            var parameters = new[]
            {
                new RequestParameter("SortOrder", sortOrder),
                new RequestParameter("SortBy", sortBy),
                new RequestParameter("IncludeSubGroups", includeSubGroups),
                new RequestParameter("OwnerUserId", ownerUserId),
                new RequestParameter("PageSize", pageSize),
                new RequestParameter("PageIndex", pageIndex)
            };

            return(GetResult <BlogsApiResult>(url));
        }