Skip to content

Commit 3ad452d

Browse files
committed
Enable metadata
1 parent 26cc3c5 commit 3ad452d

1 file changed

Lines changed: 18 additions & 17 deletions

File tree

src/main/java/com/microtripit/mandrillapp/lutung/view/MandrillMessageInfo.java

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/**
2-
*
2+
*
33
*/
44
package com.microtripit.mandrillapp.lutung.view;
55

66
import java.util.List;
7+
import java.util.Map;
78

89
/**
910
* <p>Basic information for a message.</p>
@@ -17,8 +18,8 @@ public class MandrillMessageInfo {
1718
private List<String> tags;
1819
private List<UserActionDetail> opens_detail, clicks_detail;
1920
private List<SMTPEvent> smtp_events;
20-
// private Map<String,String> metadata;
21-
21+
private Map<String,String> metadata;
22+
2223
/**
2324
* @return The Unix timestamp from when this message was sent.
2425
*/
@@ -94,17 +95,17 @@ public List<UserActionDetail> getClicksDetail() {
9495
public List<SMTPEvent> getSmtpEvents() {
9596
return smtp_events;
9697
}
97-
// /**
98-
// * @return Any custom metadata provided when the message was sent.
99-
// */
100-
// public Map<String,String> getMetadata() {
101-
// return metadata;
102-
// }
103-
98+
/**
99+
* @return Any custom metadata provided when the message was sent.
100+
*/
101+
public Map<String,String> getMetadata() {
102+
return metadata;
103+
}
104+
104105
public static class UserActionDetail {
105106
private Integer ts;
106107
private String url, ip, location, ua;
107-
108+
108109
/**
109110
* @return The unix timestamp from when the action occured.
110111
*/
@@ -124,7 +125,7 @@ public final String getIp() {
124125
return ip;
125126
}
126127
/**
127-
* @return The approximate region and country that the
128+
* @return The approximate region and country that the
128129
* acting IP is located.
129130
*/
130131
public final String getLocation() {
@@ -137,11 +138,11 @@ public final String getUa() {
137138
return ua;
138139
}
139140
}
140-
141+
141142
public static class SMTPEvent {
142143
private Integer ts;
143144
private String type, diag;
144-
145+
145146
/**
146147
* @return The Unix timestamp when the event occured.
147148
*/
@@ -155,13 +156,13 @@ public final String getType() {
155156
return type;
156157
}
157158
/**
158-
* @return The SMTP response from the recipient's server.
159+
* @return The SMTP response from the recipient's server.
159160
*/
160161
public final String getDiag() {
161162
return diag;
162163
}
163-
164-
164+
165+
165166
}
166167

167168
}

0 commit comments

Comments
 (0)