Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.classpath
.project
.settings
/target
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
package com.cribbstechnologies.clients.mandrill.model.response.message;

import org.codehaus.jackson.annotate.JsonProperty;

import com.cribbstechnologies.clients.mandrill.model.response.BaseMandrillResponse;

public class MessageResponse extends BaseMandrillResponse {

String email;
String status;
String _id;
String rejectReason;

public String getEmail() {
return email;
Expand All @@ -31,4 +34,13 @@ public String get_id() {
public void set_id(String _id) {
this._id = _id;
}

public String getRejectReason() {
return this.rejectReason;
}

@JsonProperty("reject_reason")
public void setRejectReason(String rejectReason) {
this.rejectReason = rejectReason;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private BaseMandrillResponse performPostRequest(BaseMandrillRequest request, Str
request.setKey(config.getApiKey());
HttpPost postRequest = new HttpPost(config.getServiceUrl() + serviceMethod);
String postData = getPostData(request);
StringEntity input = new StringEntity(postData, "UFT-8");
StringEntity input = new StringEntity(postData, "UTF-8");
input.setContentType("application/json");
postRequest.setEntity(input);

Expand Down