新浪微博java-API Status類

來源:互聯網
上載者:User
1、Status類成員變數:

    private Date createdAt;                                                                    //  建立時間
    private long id;                               //  微博id
    private String text;                                                                         //  微博內容,其中的表情為[表情圖片對應的文字]
    private String source;                                                //  微博來源::::發布此條微博的來源,可以是:新浪微博、手機微博、----
                                     //   ----其他網站、其他應用等,一般為一個可以指向這些應用的捷徑。
    private boolean isTruncated;                                         //  是否被截斷???
    private long inReplyToStatusId;                                    //   回複ID
    private int inReplyToUserId;                                        //   回複人UID
    private boolean isFavorited;                                        //  是否已收藏
    private String inReplyToScreenName;                               //  回複人暱稱
    private double latitude = -1;                                       //  緯度
    private double longitude = -1;                                      //  經度

圖片的大小應該是滿足:
Thumbnail_pic <= Bmiddle_pic <= Original_pic

    private String thumbnail_pic;                                        //  縮圖
    private String bmiddle_pic;                                         //  中型圖片
    private String original_pic;                                          //  原始圖片
    private RetweetDetails retweetDetails;                             //    轉寄的博文,內容為status,如果不是轉寄,則沒有此欄位
    private User user;                                                                           //    作者資訊

2、User成員變數:

private int id;                                                              //    使用者UID  
    private String name;                                                                     //    友好顯示名稱,同微博暱稱  
    private String screenName;                                                                 //    微博暱稱
    private String location;                                                                        // 地址
    private String description;                                                                   // 個人描述
    private String profileImageUrl;                                                              //    自訂映像
    private String url;                                                                                //    使用者部落格地址
    private boolean isProtected;                                                                  //
    private int followersCount;                                                                     //    粉絲數

    private Date statusCreatedAt;                                                                 //
    private long statusId = -1;
    private String statusText = null;                                                               
    private String statusSource = null;
    private boolean statusTruncated = false;
    private long statusInReplyToStatusId = -1;
    private int statusInReplyToUserId = -1;
    private boolean statusFavorited = false;
    private String statusInReplyToScreenName = null;

    private String profileBackgroundColor;
    private String profileTextColor;
    private String profileLinkColor;
    private String profileSidebarFillColor;
    private String profileSidebarBorderColor;
    private int friendsCount;                                                                            // 關注數
    private Date createdAt;                                                                             // 建立時間
    private int favouritesCount;                                                                        // 收藏數
    private int utcOffset;
    private String timeZone;
    private String profileBackgroundImageUrl;
    private String profileBackgroundTile;
    private boolean following;                                                                            // 是否已關注(此特性暫不支援)
    private boolean notificationEnabled;
    private int statusesCount;                                                                            // 微博數
    private boolean geoEnabled;
    private boolean verified;                                                                // 加V標示,是否微博認證使用者  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.