me.chanjar.weixin.mp.bean.device.WxDeviceOpenIdResult Maven / Gradle / Ivy
The newest version!
package me.chanjar.weixin.mp.bean.device;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
import java.util.List;
/**
* @author keungtung.
* created on 16/12/2016
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class WxDeviceOpenIdResult extends AbstractDeviceBean {
private static final long serialVersionUID = 4980885167833836220L;
@SerializedName("errcode")
private Integer errCode;
@SerializedName("errmsg")
private String errMsg;
@SerializedName("open_id")
private List openIds;
@SerializedName("resp_msg")
private RespMsg respMsg;
public static WxDeviceOpenIdResult fromJson(String json) {
return WxMpGsonBuilder.create().fromJson(json, WxDeviceOpenIdResult.class);
}
}