Beispiel #1
0
 internal static XmlRpcCommentCount CommentCount(CommentCount input)
 {
     return(new XmlRpcCommentCount
     {
         approved = input.Approved,
         awaiting_moderation = input.AwaitingModeration,
         spam = input.Spam,
         total_comments = input.TotalComments
     });
 }
Beispiel #2
0
 //internal static XmlRpcCommentResponse CommentResponse(CommentResponse input)
 //{
 //    return new XmlRpcCommentResponse
 //                    {
 //                        author = input.AuthorName,
 //                        author_email = input.AuthorEmail,
 //                        author_url = input.AuthorUrl,
 //                        author_ip=input.AuthorIP,
 //                        parent = Convert.ToString(input.CommentParentID),
 //                        content=input.Content,
 //                        comment_id=input.CommentID,
 //                        dateCreated=input.DateCreated,
 //                        link=input.Link,
 //                        post_id=input.PostID,
 //                        post_title=input.PostTitle,;
 //                    };
 //}
 internal static XmlRpcCommentCount CommentCount(CommentCount input)
 {
     return new XmlRpcCommentCount
     {
         approved = input.Approved,
         awaiting_moderation = input.AwaitingModeration,
         spam = input.Spam,
         total_comments = input.TotalComments
     };
 }