All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bardframework.commons.sms.SmsSender Maven / Gradle / Ivy

There is a newer version: 3.8.1
Show newest version
package org.bardframework.commons.sms;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public interface SmsSender {

    String TO_KEY = "to";
    String MESSAGE_KEY = "message";

    default boolean send(String to, String message, Map args) throws IOException {
        args = new HashMap<>(args);
        args.put(TO_KEY, to);
        args.put(MESSAGE_KEY, message);
        return this.send(args);
    }

    boolean send(Map args) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy