1 5 package org.exoplatform.services.communication.sms; 6 7 import org.exoplatform.services.communication.sms.common.*; 8 import org.exoplatform.services.communication.sms.model.*; 9 import org.exoplatform.services.communication.sms.provider.Provider; 10 import org.exoplatform.services.communication.sms.provider.Sender; 11 12 16 public interface SmsService { 17 18 public Provider createProdatProvider(String username, String password); 19 20 public Sender createSender(Provider provider); 21 22 public Messages createMessages(); 23 24 public Message createMessage(); 25 26 public Recipient createRecipient(String to); 27 28 public boolean sendSms(Provider provider, Messages messages) throws CommunicationError, RequestException, ResponseException, ConvertException; 29 30 } 31 32 | Popular Tags |