package io.openex.sms.ovh;

import java.util.List;

import static io.openex.sms.ovh.OvhSmsProducer.UTF_8;

/**
 * Created by Julien on 07/01/2017.
 */
@SuppressWarnings({"WeakerAccess", "unused"})
public class OvhSmsMessage {
	
	private String charset = UTF_8;
	
	private List<String> receivers;
	
	private String message;
	
	private String coding = "8bit";
	
	private String priority = "high";
	
	private boolean senderForResponse = true;
	
	private boolean noStopClause = true;
	
	public OvhSmsMessage(List<String> receivers, String message) {
		this.receivers = receivers;
		this.message = message;
	}
	
	public String getMessage() {
		return message;
	}
	
	public String getCharset() {
		return charset;
	}
	
	public void setCharset(String charset) {
		this.charset = charset;
	}
	
	public List<String> getReceivers() {
		return receivers;
	}
	
	public String getCoding() {
		return coding;
	}
	
	public void setCoding(String coding) {
		this.coding = coding;
	}
	
	public String getPriority() {
		return priority;
	}
	
	public void setPriority(String priority) {
		this.priority = priority;
	}
	
	public boolean isSenderForResponse() {
		return senderForResponse;
	}
	
	public void setSenderForResponse(boolean senderForResponse) {
		this.senderForResponse = senderForResponse;
	}
	
	public boolean isNoStopClause() {
		return noStopClause;
	}
	
	public void setNoStopClause(boolean noStopClause) {
		this.noStopClause = noStopClause;
	}
}

@@ -387,16 +387,52 @@
  %22high%22;
+%0A%0A%09private String sender = %22OpenEx%22;
 %0A%09%0A%09priv
@@ -459,27 +459,28 @@
 rResponse = 
-tru
+fals
 e;%0A%09%0A%09privat
@@ -1025,27 +1025,25 @@
 Priority() %7B
-%0A%09%09
+ 
 return prior
@@ -1038,34 +1038,33 @@
 return priority;
-%0A%09
+ 
 %7D%0A%09%0A%09public void
@@ -1094,19 +1094,17 @@
 ority) %7B
-%0A%09%09
+ 
 this.pri
@@ -1120,16 +1120,133 @@
 riority;
+ %7D%0A%0A%09public String getSender() %7B%0A%09%09return sender;%0A%09%7D%0A%0A%09public void setSender(String sender) %7B%0A%09%09this.sender = sender;
 %0A%09%7D%0A%09%0A%09p

Add SMS sender