me.chanjar.weixin.mp.bean.result.WxMpMassUploadResult Maven / Gradle / Ivy
package me.chanjar.weixin.mp.bean.result;
import java.io.Serializable;
import lombok.Data;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
/**
*
* 上传群发用的素材的结果.
* 视频和图文消息需要在群发前上传素材
*
*
* @author chanjarster
*/
@Data
public class WxMpMassUploadResult implements Serializable {
private static final long serialVersionUID = 6568157943644994029L;
private String type;
private String mediaId;
private long createdAt;
public static WxMpMassUploadResult fromJson(String json) {
return WxMpGsonBuilder.create().fromJson(json, WxMpMassUploadResult.class);
}
@Override
public String toString() {
return WxMpGsonBuilder.create().toJson(this);
}
}