Package weibo4j.model

Examples of weibo4j.model.Status


   *      href="http://open.weibo.com/wiki/2/statuses/update">statuses/update</a>
   * @since JDK 1.5
   */
  public Status UpdateStatus(String status, Float lat, Float longs,
      String annotations) throws WeiboException {
    return new Status(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "statuses/update.json", new PostParameter[] {
        new PostParameter("status", status),
        new PostParameter("lat", lat.toString()),
        new PostParameter("long", longs.toString()),
        new PostParameter("annotations", annotations) }));
View Full Code Here


   *      href="http://open.weibo.com/wiki/2/statuses/upload">statuses/upload</a>
   * @since JDK 1.5
   */
  public Status UploadStatus(String status, ImageItem item)
      throws WeiboException {
    return new Status(Weibo.client.multPartURL(
        WeiboConfig.getValue("baseURL") + "statuses/upload.json",
        new PostParameter[] { new PostParameter("status", status)},
        item));
  }
View Full Code Here

   *      href="http://open.weibo.com/wiki/2/statuses/upload">statuses/upload</a>
   * @since JDK 1.5
   */
  public Status UploadStatus(String status, ImageItem item, Float lat,
      Float longs) throws WeiboException {
    return new Status(Weibo.client.multPartURL(
        WeiboConfig.getValue("baseURL") + "statuses/upload.json",
        new PostParameter[] { new PostParameter("status", status),
            new PostParameter("lat", lat.toString()),
            new PostParameter("long", longs.toString()) }, item));
  }
View Full Code Here

    return null;
  }

  private void setSrcBlog(Status parent, Blog blog) {
    if (null != parent && parent.getRetweetedStatus() != null) {
      Status statu = parent.getRetweetedStatus();
      Blog src = new Blog();
      if (statu.getUser() != null)
        src.setAuthor(statu.getUser().getName());
      src.setDate(statu.getCreatedAt());
      src.setText(statu.getText());
      src.setId(Long.parseLong(statu.getId()));
      src.setBmiddlePic(statu.getBmiddlePic());
      src.setCommentsCount(statu.getCommentsCount());
      src.setOriginalPic(statu.getOriginalPic());
      src.setRepostsCount(statu.getRepostsCount());
      src.setThumbnailPic(statu.getThumbnailPic());
      blog.setSrcBlog(src);
      setSrcBlog(statu, src);
    }
  }
View Full Code Here

   * @see <a
   *      href="http://open.weibo.com/wiki/2/statuses/show">statuses/show</a>
   * @since JDK 1.5
   */
  public Status showStatus(String id) throws WeiboException {
    return new Status(Weibo.client.get(WeiboConfig.getValue("baseURL")
        + "statuses/show.json",
        new PostParameter[] { new PostParameter("id", id) }));
  }
View Full Code Here

   * @see <a
   *      href="http://open.weibo.com/wiki/2/statuses/repost">statuses/repost</a>
   * @since JDK 1.5
   */
  public Status Repost(String id) throws WeiboException {
    return new Status(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "statuses/repost.json",
        new PostParameter[] { new PostParameter("id", id) }));
  }
View Full Code Here

   *      href="http://open.weibo.com/wiki/2/statuses/repost">statuses/repost</a>
   * @since JDK 1.5
   */
  public Status Repost(String id, String status, Integer is_comment)
      throws WeiboException {
    return new Status(Weibo.client.post(WeiboConfig.getValue("baseURL") + "statuses/repost.json", new PostParameter[] {
        new PostParameter("id", id),
        new PostParameter("status", status),
        new PostParameter("is_comment", is_comment.toString()) }));
  }
View Full Code Here

   * @see <a
   *      href="http://open.weibo.com/wiki/2/statuses/destroy">statuses/destroy</a>
   * @since JDK 1.5
   */
  public Status Destroy(String id) throws WeiboException {
    return new Status(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "statuses/destroy.json",
        new PostParameter[] { new PostParameter("id", id) }));
  }
View Full Code Here

   * @see <a
   *      href="http://open.weibo.com/wiki/2/statuses/update">statuses/update</a>
   * @since JDK 1.5
   */
  public Status UpdateStatus(String status) throws WeiboException {
    return new Status(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "statuses/update.json",
        new PostParameter[] { new PostParameter("status", status) }));
  }
View Full Code Here

   *      href="http://open.weibo.com/wiki/2/statuses/update">statuses/update</a>
   * @since JDK 1.5
   */
  public Status UpdateStatus(String status, Float lat, Float longs,
      String annotations) throws WeiboException {
    return new Status(Weibo.client.post(WeiboConfig.getValue("baseURL")
        + "statuses/update.json", new PostParameter[] {
        new PostParameter("status", status),
        new PostParameter("lat", lat.toString()),
        new PostParameter("long", longs.toString()),
        new PostParameter("annotations", annotations) }));
View Full Code Here

TOP

Related Classes of weibo4j.model.Status

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.