Class BaseMessageRequest

java.lang.Object
esendex.sdk.java.model.domain.impl.BaseMessageRequest
Direct Known Subclasses:
MessageCollectionRequest, MessageRequest

public abstract class BaseMessageRequest extends Object
A BaseMessageRequest is the base class for all Message requests whether that is a collection or a single message.
  • Constructor Details

    • BaseMessageRequest

      public BaseMessageRequest(MessageType type)
  • Method Details

    • getMessageType

      public MessageType getMessageType()
    • getFrom

      public String getFrom()
    • getValidity

      public Integer getValidity()
    • getCharacterSet

      public CharacterSet getCharacterSet()
    • setCharacterSet

      public void setCharacterSet(CharacterSet characterSet)
    • setFrom

      public void setFrom(String from)
      Sets the alphanumeric originator for the message to appear to originate from.
      Parameters:
      from - the originator
    • setValidity

      public void setValidity(Integer validity)
      Sets the validity period for a message in hours (defaults to 0 which indicates the MAX allowed).
      Parameters:
      validity - the period in hours
    • setMessageType

      public void setMessageType(MessageType messageType)
    • toString

      public String toString()
      Overrides:
      toString in class Object