* LCIMMessageController.cs:

* LCIMMessageSendOptions.cs: chore: 支持推送消息
oneRain 2020-04-28 15:27:25 +08:00
parent 6994c79c51
commit d404a1995c
2 changed files with 11 additions and 1 deletions

View File

@ -46,6 +46,10 @@ namespace LeanCloud.Realtime.Internal.Controller {
if (options.Will) {
direct.Will = options.Will;
}
// 推送数据
if (options.PushData != null) {
direct.PushData = JsonConvert.SerializeObject(options.PushData);
}
// 提醒所有人
if (message.MentionAll) {
direct.MentionAll = message.MentionAll;

View File

@ -1,4 +1,6 @@
namespace LeanCloud.Realtime {
using System.Collections.Generic;
namespace LeanCloud.Realtime {
/// <summary>
/// 消息优先级
/// </summary>
@ -40,6 +42,10 @@
get; set;
}
public Dictionary<string, object> PushData {
get; set;
}
public static LCIMMessageSendOptions Default = new LCIMMessageSendOptions();
}
}