BlogEngine.Core.API.MetaWeblog.MetaWeblogHandler.GetCategories C# (CSharp) Method

GetCategories() private method

metaWeblog.getCategories method
private GetCategories ( string blogId, string userName, string password, string rootUrl ) : List
blogId string /// always 1000 in BlogEngine since it is a singlar blog instance ///
userName string /// login username ///
password string /// login password ///
rootUrl string /// The root URL. ///
return List
        internal List<MWACategory> GetCategories(string blogId, string userName, string password, string rootUrl)
        {
            if (!Security.IsAuthorizedTo(Rights.CreateNewPosts))
                return new List<MWACategory>();

            return Category.Categories.Select(cat => new MWACategory
                {
                    title = cat.Title, description = cat.Title, htmlUrl = cat.AbsoluteLink.ToString(), rssUrl = cat.FeedAbsoluteLink.ToString()
                }).ToList();
        }