me.chanjar.weixin.mp.bean.device.WxDeviceBindDeviceResult Maven / Gradle / Ivy
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.
* @date 16/12/2016
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class WxDeviceBindDeviceResult extends AbstractDeviceBean {
private static final long serialVersionUID = 725870295905935355L;
@SerializedName("resp_msg")
private RespMsg respMsg;
@SerializedName("openid")
private String openId;
@SerializedName("device_list")
private List devices;
public static WxDeviceBindDeviceResult fromJson(String json) {
return WxMpGsonBuilder.create().fromJson(json, WxDeviceBindDeviceResult.class);
}
@Data
public static class Device {
@SerializedName("device_type")
private String deviceType;
@SerializedName("device_id")
private String deviceId;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy