@SuppressWarnings({ "unchecked", "nls", "boxing" })
public Integer newComment(Integer post_id, Integer comment_parent,
String content, String author, String author_url, String author_email)
throws XmlRpcFault {
XmlRpcStruct comment = new XmlRpcStruct();
if (comment_parent != null) {
comment.put("comment_parent", comment_parent);
}
comment.put("content", content);
if (author != null)
comment.put("author", author);
if (author_url != null)
comment.put("author_url", author_url);
if (author_email != null)
comment.put("author_email", author_email);
Integer comment_id = this.wp.newComment(0, this.username, this.password,
post_id, comment);
return comment_id;