Skip to content

Commit

Permalink
Merge pull request #1 from kareanyi/develop
Browse files Browse the repository at this point in the history
群发接口响应 增加msgDataId字段 用于图文分析
  • Loading branch information
binarywang committed Jun 1, 2016
2 parents 2ec3c52 + 902b689 commit 58ad7b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class WxMpMassSendResult implements Serializable {
private String errorCode;
private String errorMsg;
private String msgId;
private String msgDataId;

public String getErrorCode() {
return errorCode;
Expand All @@ -44,7 +45,15 @@ public String getMsgId() {
public void setMsgId(String msgId) {
this.msgId = msgId;
}


public String getMsgDataId() {
return msgDataId;
}

public void setMsgDataId(String msgDataId) {
this.msgDataId = msgDataId;
}

public static WxMpMassSendResult fromJson(String json) {
return WxMpGsonBuilder.create().fromJson(json, WxMpMassSendResult.class);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public WxMpMassSendResult deserialize(JsonElement json, Type typeOfT, JsonDeseri
if (sendResultJsonObject.get("msg_id") != null && !sendResultJsonObject.get("msg_id").isJsonNull()) {
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;
}

Expand Down

0 comments on commit 58ad7b7

Please sign in to comment.