public class Sms extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
private String |
content
短信内容
必须以【签名20字以内】开头,保证服务端可以正确获取到签名
|
private String |
extCode
通道的拓展码
|
private String |
mobile
手机号
|
private Long |
msgId
短信msgId,可选 ,必须为8字节长整型,否则反错。
|
private String |
sId
客户自定义(V4接口支持)
最大长度64,不支持表情符
|
| 构造器和说明 |
|---|
Sms(String mobile,
String content)
construct
|
Sms(String mobile,
String content,
Long msgId) |
Sms(String mobile,
String content,
String extCode) |
Sms(String mobile,
String content,
String extCode,
Long msgId)
二代接口自定义msgId
|
Sms(String mobile,
String content,
String extCode,
String sId)
四代接口自定义sId
|
private String mobile
private String content
private String extCode
private Long msgId
private String sId
public Sms(String mobile, String content, String extCode, Long msgId)
mobile - content - extCode - msgId - public Sms(String mobile, String content, String extCode, String sId)
mobile - content - extCode - sId - public String getMobile()
public void setMobile(String mobile)
public String getContent()
public void setContent(String content)
public String getExtCode()
public void setExtCode(String extCode)
public Long getMsgId()
public void setMsgId(Long msgId)
public String getsId()
public void setsId(String sId)
Copyright © 2023. All rights reserved.