me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo Maven / Gradle / Ivy
package me.chanjar.weixin.cp.bean.external.contact;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
*
* 外部联系人详情
* Created by Binary Wang on 2018/9/16.
* 参考文档:https://work.weixin.qq.com/api/doc#13878
*
*
* @author Binary Wang
*/
@Data
public class WxCpExternalContactInfo implements Serializable {
private static final long serialVersionUID = 4311777322534499260L;
@SerializedName("external_contact")
private ExternalContact externalContact;
@SerializedName("follow_user")
private List followedUsers;
@SerializedName("next_cursor")
private String nextCursor;
/**
* From json wx cp external contact info.
*
* @param json the json
* @return the wx cp external contact info
*/
public static WxCpExternalContactInfo fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpExternalContactInfo.class);
}
}