Skip to content

Commit ef0f54f

Browse files
authored
Merge pull request #18 from dysosmus/TEC-1253
Support for datacoding parameter with the Verify endpoint
2 parents a1fb19d + 8d2e419 commit ef0f54f

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

api/src/main/java/com/messagebird/objects/VerifyRequest.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ public class VerifyRequest implements Serializable {
1111
private String originator;
1212
private String reference;
1313
private MsgType type;
14+
private DataCodingType datacoding = DataCodingType.plain;
1415
private String template;
1516
private Integer timeout;
1617
private Integer tokenLength;
1718
private Gender voice;
1819
private Language language;
1920

20-
2121
public VerifyRequest(String recipient) {
2222
this.recipient = recipient;
2323
}
@@ -54,6 +54,24 @@ public void setType(MsgType type) {
5454
this.type = type;
5555
}
5656

57+
/**
58+
* The datacoding used by the template.
59+
*
60+
* @return returns plain or unicode
61+
*/
62+
public DataCodingType getDatacoding() {
63+
return datacoding;
64+
}
65+
66+
/**
67+
* The datacoding used by the template.
68+
*
69+
* @param datacoding
70+
*/
71+
public void setDatacoding(DataCodingType datacoding) {
72+
this.datacoding = datacoding;
73+
}
74+
5775
public String getTemplate() {
5876
return template;
5977
}
@@ -93,4 +111,5 @@ public Language getLanguage() {
93111
public void setLanguage(Language language) {
94112
this.language = language;
95113
}
114+
96115
}

0 commit comments

Comments
 (0)