Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optional field trackable added for message #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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