Skip to content
Open
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
13 changes: 13 additions & 0 deletions src/main/java/com/plivo/api/models/message/MessageCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class MessageCreator extends Creator<MessageCreateResponse> {
private URL url = null;
private String method = "POST";
private Boolean log = null;
private Boolean trackable = null;

/**
* @param source The phone number that will be shown as the sender ID.
Expand Down Expand Up @@ -72,6 +73,9 @@ public Boolean log() {
return this.log;
}

public Boolean trackable(){
return this.trackable;
}
/**
* @param type Must be {@link MessageType#SMS}
*/
Expand Down Expand Up @@ -105,6 +109,15 @@ public MessageCreator log(final Boolean log) {
return this;
}

/**
* @param trackabel optional field
* infrastructure and the dst value will be masked
*/
public MessageCreator trackable(final Boolean trackable){
this.trackable = log;
return this;
}


@Override
protected Call<MessageCreateResponse> obtainCall() {
Expand Down