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

cn.binarywang.wx.miniapp.bean.code.WxMaCodeVersionDistribution Maven / Gradle / Ivy

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

import cn.binarywang.wx.miniapp.json.WxMaGsonBuilder;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 小程序代码版本号分布
 *
 * @author Charming
 * @since 2018-04-26 19:45
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WxMaCodeVersionDistribution {
  /**
   * 当前版本
   */
  private String nowVersion;
  /**
   * 受影响用户占比
   * key: version, 版本号
   * value: percentage, 受影响比例
   */
  private Map uvInfo;

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy