public abstract class BaseWebhookRequestBody extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected GlobalInfo |
globalInfo |
protected Map<String,Object> |
map |
protected List<String> |
userIdList |
protected List<String> |
userMobileList |
protected WebhookProductEnum |
webhookProductEnum |
| 构造器和说明 |
|---|
BaseWebhookRequestBody() |
| 限定符和类型 | 方法和说明 |
|---|---|
BaseWebhookRequestBody |
addContent(String tag,
Object obj) |
BaseWebhookRequestBody |
addContent(String tag,
String text) |
BaseWebhookRequestBody |
addGlobalInfo(GlobalInfo globalInfo) |
BaseWebhookRequestBody |
addSign(long timestamp,
String sign) |
BaseWebhookRequestBody |
addUserIdList(List<String> userIdList)
添加用户id集合
|
BaseWebhookRequestBody |
addUserMobileList(List<String> userMobileList)
添加用户手机号集合
|
Map<String,Object> |
getMap() |
abstract String |
getUrlAndSignContent(ExecuteParam executeParam)
对内容签名并返回 url
|
WebhookProductEnum |
getWebhookProductEnum() |
abstract void |
preToJsonSting()
对象转json字符串之前的操作
|
void |
setWebhookProductEnum(WebhookProductEnum webhookProductEnum) |
String |
toJsonSting() |
@Expose(serialize=false) protected WebhookProductEnum webhookProductEnum
@Expose(serialize=false) protected GlobalInfo globalInfo
public String toJsonSting()
public abstract String getUrlAndSignContent(ExecuteParam executeParam)
executeParam - 请求对象public BaseWebhookRequestBody addUserIdList(List<String> userIdList)
userIdList - 用户id集合public BaseWebhookRequestBody addUserMobileList(List<String> userMobileList)
userMobileList - 用户手机号集合public abstract void preToJsonSting()
public BaseWebhookRequestBody addContent(String tag, String text)
public BaseWebhookRequestBody addContent(String tag, Object obj)
public BaseWebhookRequestBody addSign(long timestamp, String sign)
public void setWebhookProductEnum(WebhookProductEnum webhookProductEnum)
public WebhookProductEnum getWebhookProductEnum()
public BaseWebhookRequestBody addGlobalInfo(GlobalInfo globalInfo)
Copyright © 2022. All rights reserved.