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

cn.binarywang.wx.miniapp.bean.analysis.WxMaRetainInfo Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package cn.binarywang.wx.miniapp.bean.analysis;

import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * 访问留存
 *
 * @author Charming
 * @since 2018-04-28 14:41
 */
@Data
public class WxMaRetainInfo implements Serializable {
  private static final long serialVersionUID = 8986403173656848413L;
  /**
   * 日留存:日期,yyyyMMdd 格式,如 20170313
   * 周留存:时间,如"20170306-20170312"
   * 月留存:时间,如"201702"
   */
  @SerializedName(value = "refDate", alternate = "ref_date")
  private String refDate;
  /**
   * 新增用户留存
   * - key:
   *  - 日留存:标识,0开始,0表示当天,1表示1天后,依此类推,key取值分别是:0,1,2,3,4,5,6,7,14,30
   *  - 周留存:标识,0开始,0表示当周,1表示1周后,依此类推,key 取值分别是:0,1,2,3,4
   *  - 月留存:标识,0开始,0表示当月,1表示1月后,key取值分别是:0,1
   * - value: key对应日期的新增用户数/活跃用户数(key=0时)或留存用户数(k>0时)
   */
  private Map visitUvNew;
  /**
   * 活跃用户留存
   */
  private Map visitUv;

  public static WxMaRetainInfo fromJson(String json) {
    return WxMaGsonBuilder.create().fromJson(json, WxMaRetainInfo.class);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy