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

me.chanjar.weixin.mp.bean.datacube.WxDataCubeUserCumulate Maven / Gradle / Ivy

The newest version!
package me.chanjar.weixin.mp.bean.datacube;

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

import com.google.gson.reflect.TypeToken;
import lombok.Data;
import me.chanjar.weixin.common.util.json.GsonParser;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;

/**
 * 
 * 累计用户数据接口的返回JSON数据包
 * 详情查看文档:用户分析数据接口
 * 
* * @author BinaryWang */ @Data public class WxDataCubeUserCumulate implements Serializable { private static final long serialVersionUID = -3570981300225093657L; private Date refDate; private Integer cumulateUser; public static List fromJson(String json) { return WxMpGsonBuilder.create().fromJson( GsonParser.parse(json).get("list"), new TypeToken>() { }.getType()); } @Override public String toString() { return WxMpGsonBuilder.create().toJson(this); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy