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

com.litongjava.tio.utils.notification.NotificationUtils Maven / Gradle / Ivy

There is a newer version: 3.7.3.v202400213-RELEASE
Show newest version
package com.litongjava.tio.utils.notification;

import java.util.HashMap;

import okhttp3.Response;

public class NotificationUtils {

  private static INotificationFactory factory = new WeComNotificationFectory();

  public static INotificationFactory getFactory() {
    return factory;
  }

  public static void setFactory(INotificationFactory ifactory) {
    factory = ifactory;
  }

  public static Response sendTextMsg(String string) {
    return factory.getNotifaction().sendTextMsg(string);
  }

  public static Response sendWarm(NotifactionWarmModel model) {
    return factory.getNotifaction().sendWarm(model);

  }

  public static Response send(String webHookUrl, HashMap reqMap) {
    return factory.getNotifaction().send(webHookUrl, reqMap);
  }

  public static Response send(HashMap reqMap) {
    return factory.getNotifaction().send(reqMap);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy