public class StandardBearyChatService extends Object implements BearyChatService
| 构造器和说明 |
|---|
StandardBearyChatService(String webhook,
String channel) |
| 限定符和类型 | 方法和说明 |
|---|---|
net.sf.json.JSONObject |
genAttachment(String title,
String text,
String color,
String url) |
protected org.apache.commons.httpclient.HttpClient |
getHttpClient() |
String |
getPostUrl() |
boolean |
publish(net.sf.json.JSONObject data) |
boolean |
publish(String message) |
boolean |
publish(String message,
net.sf.json.JSONArray attachments,
String fallback) |
boolean |
publish(String message,
String text,
String fallback,
String color) |
public net.sf.json.JSONObject genAttachment(String title, String text, String color, String url)
public boolean publish(String message)
publish 在接口中 BearyChatServicepublic boolean publish(String message, String text, String fallback, String color)
publish 在接口中 BearyChatServicepublic boolean publish(String message, net.sf.json.JSONArray attachments, String fallback)
publish 在接口中 BearyChatServicepublic boolean publish(net.sf.json.JSONObject data)
publish 在接口中 BearyChatServicepublic String getPostUrl()
protected org.apache.commons.httpclient.HttpClient getHttpClient()
Copyright © 2016–2017. All rights reserved.