Esempio n. 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);
        }
Esempio n. 2
0
 public string newPost(object blogid, string username, string password, mwPost mwPost, bool publish)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
        public bool editPost(string postid, string username, string password, mwPost mwPost, bool publish)
        {
            ValidateUserCredentials(username, password);

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

            throw new NotImplementedException();
        }
Esempio n. 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;
 }
Esempio n. 6
0
 public string newPost(object blogid, string username, string password, mwPost mwPost, bool publish)
 {
     throw new NotImplementedException();
 }