Example #1
0
 public CategoryInfo[] GetCategories(string blogid, string username, string password)
 {
     using (var metaWeblog = new MetaWeblogBlog(username, password, blogid))
     {
         return new CategoryInfo[0];
     }
 }
Example #2
0
 public CategoryInfo[] GetCategories(string blogid, string username, string password)
 {
     using (var metaWeblog = new MetaWeblogBlog(username, password, blogid))
     {
         return(new CategoryInfo[0]);
     }
 }
Example #3
0
 public string AddPost(string blogid, string username, string password, Post post, bool publish)
 {
     using (var metaWeblog = new MetaWeblogBlog(username, password, blogid))
     {
         string publicationStatus = publish
                                        ? GenericPublishProcessController.Published
                                        : GenericPublishProcessController.Draft;
         return metaWeblog.AddPost(post.title, post.description, publicationStatus).ToString();
     }
 }
Example #4
0
 public string AddPost(string blogid, string username, string password, Post post, bool publish)
 {
     using (var metaWeblog = new MetaWeblogBlog(username, password, blogid))
     {
         string publicationStatus = publish
                                        ? GenericPublishProcessController.Published
                                        : GenericPublishProcessController.Draft;
         return(metaWeblog.AddPost(post.title, post.description, publicationStatus).ToString());
     }
 }
Example #5
0
 public Post[] GetRecentPosts(string blogid, string username, string password, int numberOfPosts)
 {
     using (var metaWeblog = new MetaWeblogBlog(username, password, blogid))
     {
         return metaWeblog.GetRecentPosts().Take(numberOfPosts)
                          .Select(d =>
                                  new Post
                                      {
                                          postid = d.Id.ToString(),
                                          dateCreated = d.Date,
                                          title = d.Title
                                      }
             ).ToArray();
     }
 }
Example #6
0
 public Post[] GetRecentPosts(string blogid, string username, string password, int numberOfPosts)
 {
     using (var metaWeblog = new MetaWeblogBlog(username, password, blogid))
     {
         return(metaWeblog.GetRecentPosts().Take(numberOfPosts)
                .Select(d =>
                        new Post
         {
             postid = d.Id.ToString(),
             dateCreated = d.Date,
             title = d.Title
         }
                        ).ToArray());
     }
 }