KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > communication > sms > model > Message


1 /**
2  * Copyright 2001-2004 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  **/

5 package org.exoplatform.services.communication.sms.model;
6
7 import java.util.List JavaDoc;
8 import org.exoplatform.services.communication.sms.encoder.MessageFormat;
9
10
11 /**
12  * @author Ove Ranheim (oranheim@yahoo.no)
13  * @since Jun 17, 2004 4:05:27 PM
14  */

15 public interface Message {
16
17     public String JavaDoc getFrom();
18
19     public Message setFrom(String JavaDoc from);
20
21     public List JavaDoc getRecipients();
22
23     public Recipient addRecipient(Recipient recipient);
24
25     public Recipient addRecipient(String JavaDoc recipient);
26
27     public void removeRecipient(Recipient recipient);
28
29     public void removeRecipient(int index);
30
31     public Recipient findRecipientById(Integer JavaDoc id);
32     
33     public void clearRecipients();
34
35     public int countRecipients();
36     
37     public Object JavaDoc getContent();
38
39     public Message setContent(Object JavaDoc content);
40
41     public MessageFormat getFormat();
42
43     public Message setFormat(MessageFormat format);
44
45 }
46
Popular Tags