1 5 package org.exoplatform.services.communication.sms.model; 6 7 import java.util.List ; 8 import org.exoplatform.services.communication.sms.encoder.MessageFormat; 9 10 11 15 public interface Message { 16 17 public String getFrom(); 18 19 public Message setFrom(String from); 20 21 public List getRecipients(); 22 23 public Recipient addRecipient(Recipient recipient); 24 25 public Recipient addRecipient(String recipient); 26 27 public void removeRecipient(Recipient recipient); 28 29 public void removeRecipient(int index); 30 31 public Recipient findRecipientById(Integer id); 32 33 public void clearRecipients(); 34 35 public int countRecipients(); 36 37 public Object getContent(); 38 39 public Message setContent(Object content); 40 41 public MessageFormat getFormat(); 42 43 public Message setFormat(MessageFormat format); 44 45 } 46 | Popular Tags |