Package redstone.xmlrpc

Examples of redstone.xmlrpc.XmlRpcStruct


  @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;
View Full Code Here


  /**
   * @return the comment status list
   */
  public CommentStatusList getCommentStatusList() {
    XmlRpcStruct csl = this.wp.getCommentStatusList(0, this.username,
        this.password);
    CommentStatusList result = new CommentStatusList();
    result.fromXmlRpcStruct(csl);
    return result;
  }
View Full Code Here

TOP

Related Classes of redstone.xmlrpc.XmlRpcStruct

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.