All Downloads are FREE. Search and download functionalities are using the official Maven repository.

weibo4j.model.StatusesCounts Maven / Gradle / Ivy

/*
 * Copyright © 2021 pengjianqiang
 * All rights reserved.
 * 项目名称:微博开放平台API-JAVA SDK
 * 项目描述:基于微博开放平台官网的weibo4j-oauth2-beta3.1.1包及新版接口做二次开发
 * 项目地址:https://github.com/qqxadyy/weibo-openapi-4java
 * 许可证信息:见下文
 *
 * ======================================================================
 *
 * src/main/java/weibo4j下的文件是从weibo4j-oauth2-beta3.1.1.zip中复制出来的
 * 本项目对这个目录下的部分源码做了重新改造
 * 但是许可信息和"https://github.com/sunxiaowei2014/weibo4j-oauth2-beta3.1.1"或源码中已存在的保持一致
 */
package weibo4j.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import pjq.weibo.openapi.support.WeiboJsonName;
import weibo4j.org.json.JSONObject;

/**
 * 微博评论数等
 * 
 * @author pengjianqiang
 * @date 2021年1月26日
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@WeiboJsonName
@SuppressWarnings("serial")
public class StatusesCounts extends WeiboResponse {
    private String id; // 微博ID
    private Long comments; // 评论数
    private Long reposts; // 转发数
    private Long attitudes; // 表态数(赞数)
    private @WeiboJsonName(value = "number_display_strategy",
        isNewAndNoDesc = true) StatusNumberDisplayStrategy statusNumberDisplayStrategy;

    public StatusesCounts(JSONObject json) {
        super(json);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy