Class SMSManager

    • Constructor Detail

      • SMSManager

        public SMSManager()
    • Method Detail

      • sendTextMessage

        public void sendTextMessage​(String msisdn,
                                    int port,
                                    String text)
      • sendBinaryMessage

        public void sendBinaryMessage​(String msisdn,
                                      int port,
                                      byte[] data)
      • send

        protected abstract void send​(String msisdn,
                                     int port,
                                     byte type,
                                     byte[] data)
        Send an SMS of a given type (BINARY or TEXT) to a given msisdn on a given port. Note that SMS are not reliable --> Being sure that the SMS has been sent does not guarantee that the destination msisdn receives it --> This is why this method does not throw any exception