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

in.ashwanthkumar.slack.webhook.SlackLinkUtils Maven / Gradle / Ivy

There is a newer version: 0.0.10
Show newest version
package in.ashwanthkumar.slack.webhook;

public class SlackLinkUtils {
    public static String email(String email, String user) {
        return String.format("", email, user);
    }

    public static String email(String email) {
        return String.format("", email);
    }

    public static String link(String href, String name) {
        return String.format("<%s|%s>", href, name);
    }

    public static String link(String href) {
        return String.format("<%s>", href);
    }

    public static String user(String handle, String name) {
        return String.format("<@%s|%s>", handle, name);
    }

    public static String user(String handle) {
        return String.format("<@%s>", handle);
    }

    public static String channel(String channel) {
        return String.format("<#%s>", channel);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy