/// <summary> /// metaWeblog.getCategories /// </summary> /// <param name="blogID">always 1000 in BlogEngine since it is a singlar blog instance</param> /// <param name="userName">login username</param> /// <param name="password">login password</param> /// <param name="rootUrl">The root URL.</param> /// <returns>array of category structs</returns> internal List <MWACategory> GetCategories(string blogID, string userName, string password, string rootUrl) { List <MWACategory> categories = new List <MWACategory>(); ValidateRequest(userName, password); foreach (Category cat in Category.Categories) { MWACategory temp = new MWACategory(); temp.title = cat.Title; temp.description = cat.Title; //cat.Description; temp.htmlUrl = cat.AbsoluteLink.ToString(); temp.rssUrl = cat.FeedAbsoluteLink.ToString(); categories.Add(temp); } return(categories); }
/// <summary> /// metaWeblog.getCategories /// </summary> /// <param name="blogID">always 1000 in BlogEngine since it is a singlar blog instance</param> /// <param name="userName">login username</param> /// <param name="password">login password</param> /// <param name="rootUrl">The root URL.</param> /// <returns>array of category structs</returns> internal List <MWACategory> GetCategories(string blogID, string userName, string password, string rootUrl) { List <MWACategory> categories = new List <MWACategory>(); ValidateRequest(userName, password); foreach (Category cat in Category.Categories) { MWACategory temp = new MWACategory(); temp.title = cat.Title; temp.description = cat.Title; //cat.Description; temp.htmlUrl = rootUrl + "category/" + cat.Title + ".aspx"; temp.rssUrl = rootUrl + "category/syndication.axd?category=" + cat.Id.ToString(); categories.Add(temp); } return(categories); }
/// <summary> /// metaWeblog.getCategories /// </summary> /// <param name="blogID">always 1000 in BlogEngine since it is a singlar blog instance</param> /// <param name="userName">login username</param> /// <param name="password">login password</param> /// <param name="rootUrl">The root URL.</param> /// <returns>array of category structs</returns> internal List<MWACategory> GetCategories(string blogID, string userName, string password, string rootUrl) { List<MWACategory> categories = new List<MWACategory>(); ValidateRequest(userName, password); foreach (Category cat in Category.Categories) { MWACategory temp = new MWACategory(); temp.title = cat.Title; temp.description = cat.Title; //cat.Description; temp.htmlUrl = cat.AbsoluteLink.ToString(); temp.rssUrl = cat.FeedAbsoluteLink.ToString(); categories.Add(temp); } return categories; }