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

me.chanjar.weixin.mp.bean.marketing.WxMpUserActionSet Maven / Gradle / Ivy

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

import com.google.gson.annotations.SerializedName;
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;

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

/**
 * @author 007
 */

@Data
public class WxMpUserActionSet implements Serializable {
  private static final long serialVersionUID = 1979861770645159905L;

  /**
   * user_action_set_id
   * 用户行为源名称
   */
  @SerializedName("user_action_set_id")
  private Long userActionSetId;

  /**
   * title.
   * 用户行为源描述
   */
  @SerializedName("description")
  private String description;

  /**
   * activate_status.
   * 数据接入状态, true 表示已接入, false 表示未接入
   */
  @SerializedName("activate_status")
  private Boolean activate_status;

  /**
   * created_time.
   * 创建时间
   */
  @SerializedName("created_time")
  private String createdTime;

  public static List fromJson(String json) {
    return WxMpGsonBuilder.create().fromJson(
      GsonParser.parse(json).get("data").getAsJsonObject().get("list"),
      new TypeToken>() {
      }.getType());
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy