程序包 top.misec.bark

类 BarkPush

java.lang.Object
top.misec.bark.BarkPush

public class BarkPush extends Object
  • 构造器详细资料

    • BarkPush

      public BarkPush(String pushUrl, String deviceKey)
    • BarkPush

      public BarkPush(String pushUrl, String deviceKey, Encryption encryption)
      参数:
      pushUrl - 推送地址
      deviceKey - 设备Key
      encryption - 加密信息
    • BarkPush

      public BarkPush(BarkCfg cfg)
  • 方法详细资料

    • simpleWithResp

      public BarkPushResp simpleWithResp(String content, boolean retryTimes)
      推送简单文本信息 带结果返回
      参数:
      content - 推送内容
      retryTimes - 重试次数
      返回:
      BarkPushResp
    • simpleWithResp

      public BarkPushResp simpleWithResp(String content)
    • encryptionPush

      public BarkPushResp encryptionPush(String content)
      推送详细信息
      参数:
      content - content
      返回:
      BarkPushResp
    • simpleWithResp

      public BarkPushResp simpleWithResp(PushDetails obj)