Skip to content

Commit

Permalink
Merge pull request #41 from rongcloud/v3
Browse files Browse the repository at this point in the history
V3
  • Loading branch information
m198799 authored Aug 14, 2019
2 parents a882377 + baefc96 commit 80e1e9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sdk/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,13 @@ func (msg *DizNtf) ToString() (string, error) {
*@param count:针对 iOS 平台,Push 时用来控制未读消息显示数,只有在 toUserId 为一个用户 Id 的时候有效。
*@param verifyBlacklist:是否过滤发送人黑名单列表,0 表示为不过滤、 1 表示为过滤,默认为 0 不过滤。
*@param isPersisted:当前版本有新的自定义消息,而老版本没有该自定义消息时,老版本客户端收到消息后是否进行存储,0 表示为不存储、 1 表示为存储,默认为 1 存储消息。
*@param isCounted:当前版本有新的自定义消息,而老版本没有该自定义消息时,老版本客户端收到消息后是否进行未读消息计数,0 表示为不计数、 1 表示为计数,默认为 1 计数,未读消息数增加 1。
*@param isIncludeSender:发送用户自已是否接收消息,0 表示为不接收,1 表示为接收,默认为 0 不接收。
*@param contentAvailable:针对 iOS 平台,对 SDK 处于后台暂停状态时为静默推送,是 iOS7 之后推出的一种推送方式。 允许应用在收到通知后在后台运行一段代码,且能够马上执行,查看详细。1 表示为开启,0 表示为关闭,默认为 0。
*
*@return error
*/
func (rc *RongCloud) PrivateSend(senderID string, targetID []string, objectName string, msg rcMsg,
pushContent, pushData string, count, verifyBlacklist, isPersisted, isCounted, isIncludeSender int) error {
pushContent, pushData string, count, verifyBlacklist, isPersisted, isIncludeSender, contentAvailable int) error {
if senderID == "" {
return RCErrorNew(1002, "Paramer 'senderID' is required")
}
Expand Down Expand Up @@ -317,7 +317,7 @@ func (rc *RongCloud) PrivateSend(senderID string, targetID []string, objectName
req.Param("count", strconv.Itoa(count))
req.Param("verifyBlacklist", strconv.Itoa(verifyBlacklist))
req.Param("isPersisted", strconv.Itoa(isPersisted))
req.Param("isCounted", strconv.Itoa(isCounted))
req.Param("contentAvailable", strconv.Itoa(contentAvailable))
req.Param("isIncludeSender", strconv.Itoa(isIncludeSender))

rep, err := req.Bytes()
Expand Down
2 changes: 1 addition & 1 deletion sdk/message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestMessage_PrivateSend(t *testing.T) {
1,
0,
1,
1,
0,
0,
)
t.Log(err)
Expand Down

0 comments on commit 80e1e9a

Please sign in to comment.