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

me.chanjar.weixin.mp.bean.draft.WxMpDraftList Maven / Gradle / Ivy

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

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;

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

/**
 * 草稿箱能力-获取草稿列表.
 *
 * @author dragon
 * created on  2021-10-22
 */
@Data
public class WxMpDraftList implements Serializable {
  private static final long serialVersionUID = 7216822694952035295L;

  /**
   * 草稿素材的总数
   */
  @SerializedName("total_count")
  private Integer totalCount;

  /**
   * 本次调用获取的素材的数量
   */
  @SerializedName("item_count")
  private Integer itemCount;

  /**
   * 所有草稿列表
   */
  @SerializedName("item")
  private List items;

  public static WxMpDraftList fromJson(String json) {
    return WxGsonBuilder.create().fromJson(json, WxMpDraftList.class);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy