Beispiel #1
0
        private mwPost Convert(Post post)
        {
            var mwpost = new mwPost
            {
                dateCreated = post.Published.Value,
                description = post.Body,
                title       = post.Title,
                postid      = post.ID.ToString(),
                link        = _urlResolver.PublishedPost(new PostDisplay(post)),
                permalink   = _urlResolver.PublishedPost(new PostDisplay(post)),
                userid      = post.User.ID.ToString()
            };
            List <string> categories = new List <string>();

            post.GetTags().Each(tag => categories.Add(tag.Name));
            mwpost.categories = categories.ToArray();
            return(mwpost);
        }
Beispiel #2
0
 public string newPost(object blogid, string username, string password, mwPost mwPost, bool publish)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
        public bool editPost(string postid, string username, string password, mwPost mwPost, bool publish)
        {
            ValidateUserCredentials(username, password);

            throw new NotImplementedException();
        }
Beispiel #4
0
        public bool editPost(string postid, string username, string password, mwPost mwPost, bool publish)
        {
            ValidateUserCredentials(username, password);

            throw new NotImplementedException();
        }
Beispiel #5
0
 private mwPost Convert(Post post)
 {
     var mwpost = new mwPost
     {
         dateCreated = post.Published.Value,
         description = post.Body,
         title = post.Title,
         postid = post.ID.ToString(),
         link = _urlResolver.PublishedPost(new PostDisplay(post)),
         permalink = _urlResolver.PublishedPost(new PostDisplay(post)),
         userid = post.User.ID.ToString()
     };
     List<string> categories = new List<string>();
     post.GetTags().Each(tag => categories.Add(tag.Name));
     mwpost.categories = categories.ToArray();
     return mwpost;
 }
Beispiel #6
0
 public string newPost(object blogid, string username, string password, mwPost mwPost, bool publish)
 {
     throw new NotImplementedException();
 }