群发接口响应 增加msgDataId字段 用于图文分析

This commit is contained in:
miller 2016-06-01 10:07:20 +08:00
parent 2ec3c527c2
commit 902b6897a1
2 changed files with 13 additions and 1 deletions

View File

@ -20,6 +20,7 @@ public class WxMpMassSendResult implements Serializable {
private String errorCode; private String errorCode;
private String errorMsg; private String errorMsg;
private String msgId; private String msgId;
private String msgDataId;
public String getErrorCode() { public String getErrorCode() {
return errorCode; return errorCode;
@ -45,6 +46,14 @@ public class WxMpMassSendResult implements Serializable {
this.msgId = msgId; this.msgId = msgId;
} }
public String getMsgDataId() {
return msgDataId;
}
public void setMsgDataId(String msgDataId) {
this.msgDataId = msgDataId;
}
public static WxMpMassSendResult fromJson(String json) { public static WxMpMassSendResult fromJson(String json) {
return WxMpGsonBuilder.create().fromJson(json, WxMpMassSendResult.class); return WxMpGsonBuilder.create().fromJson(json, WxMpMassSendResult.class);
} }

View File

@ -34,6 +34,9 @@ public class WxMpMassSendResultAdapter implements JsonDeserializer<WxMpMassSendR
if (sendResultJsonObject.get("msg_id") != null && !sendResultJsonObject.get("msg_id").isJsonNull()) { if (sendResultJsonObject.get("msg_id") != null && !sendResultJsonObject.get("msg_id").isJsonNull()) {
sendResult.setMsgId(GsonHelper.getAsString(sendResultJsonObject.get("msg_id"))); sendResult.setMsgId(GsonHelper.getAsString(sendResultJsonObject.get("msg_id")));
} }
if (sendResultJsonObject.get("msg_data_id") != null && !sendResultJsonObject.get("msg_data_id").isJsonNull()) {
sendResult.setMsgDataId(GsonHelper.getAsString(sendResultJsonObject.get("msg_data_id")));
}
return sendResult; return sendResult;
} }