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

me.chanjar.weixin.cp.bean.message.WxCpMessageSendStatistics Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package me.chanjar.weixin.cp.bean.message;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;

import java.io.Serializable;
import java.util.List;

/**
 * 应用消息发送统计信息.
 *
 * @author Binary Wang created on  2020-09-13
 */
@Data
public class WxCpMessageSendStatistics implements Serializable {
  private static final long serialVersionUID = 6031833682211475786L;

  /**
   * From json wx cp message send statistics.
   *
   * @param json the json
   * @return the wx cp message send statistics
   */
  public static WxCpMessageSendStatistics fromJson(String json) {
    return WxCpGsonBuilder.create().fromJson(json, WxCpMessageSendStatistics.class);
  }

  private List statistics;

  /**
   * The type Statistic item.
   */
  @Data
  public static class StatisticItem implements Serializable {
    private static final long serialVersionUID = 6031833682211475786L;

    /**
     * 应用名
     */
    @SerializedName("app_name")
    private String appName;

    /**
     * 应用id
     */
    @SerializedName("agentid")
    private Integer agentId;

    /**
     * 发消息成功人次
     */
    @SerializedName("count")
    private Integer count;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy