package me.chanjar.weixin.mp.bean.device;

import com.google.gson.annotations.SerializedName;

import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;

/**
 * Created by keungtung on 10/12/2016.
 */
public class WxDeviceAuthorize extends AbstractDeviceBean {
  @SerializedName("device_num")
  private String deviceNum;
  @SerializedName("op_type")
  private String opType;
  @SerializedName("device_list")
  private List<WxDevice> deviceList = new LinkedList<>();

  public String getDeviceNum() {
    return deviceNum;
  }

  public void setDeviceNum(String deviceNum) {
    this.deviceNum = deviceNum;
  }

  public String getOpType() {
    return opType;
  }

  public void setOpType(String opType) {
    this.opType = opType;
  }

  public List<WxDevice> getDeviceList() {
    return deviceList;
  }

  public void setDeviceList(List<WxDevice> deviceList) {
    this.deviceList = deviceList;
  }

  public void addDevice(WxDevice... devices) {
    this.deviceList.addAll(Arrays.asList(devices));
  }
}

@@ -387,16 +387,76 @@
 opType;%0A
+  @SerializedName(%22product_id%22)%0A  private String productId;%0A
   @Seria
@@ -801,32 +801,176 @@
  = opType;%0A  %7D%0A%0A
+  public String getProductId() %7B%0A    return productId;%0A  %7D%0A%0A  public void setProductId(String productId) %7B%0A    this.productId = productId;%0A  %7D%0A%0A
   public List%3CWx

修正微信设备授权接口参数字段缺失 参见 http://iot.weixin.qq.com/wiki/new/index.html?page=3-4-5