me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactBatchInfo Maven / Gradle / Ivy
package me.chanjar.weixin.cp.bean.external.contact;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
*
* 批量获取客户详情
* 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/92994
*
*
* @author alucardxh
*/
@Getter
@Setter
public class WxCpExternalContactBatchInfo extends WxCpBaseResp implements Serializable {
private static final long serialVersionUID = -5166048319463473186L;
@SerializedName("external_contact_list")
private List externalContactList;
@SerializedName("next_cursor")
private String nextCursor;
/**
* The type External contact info.
*/
@Getter
@Setter
public static class ExternalContactInfo implements Serializable {
private static final long serialVersionUID = 4723983768235723206L;
@SerializedName("external_contact")
private ExternalContact externalContact;
@SerializedName("follow_info")
private FollowedUser followInfo;
}
/**
* From json wx cp external contact batch info.
*
* @param json the json
* @return the wx cp external contact batch info
*/
public static WxCpExternalContactBatchInfo fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpExternalContactBatchInfo.class);
}
}