示例#1
0
 public async static Task SendMessageAsync(object message, params string[] userIds)
 {
     var serializer = ObjectFactory.Build <IJsonSerializer>();
     var msg        = new SendToUsers
     {
         Users   = userIds,
         Payload = JObject.FromObject(message)
     };
     await App.SendMessageAsync(msg);
 }
示例#2
0
 public async static Task SendMessageAsync(object message, params string[] userIds)
 {
     var serializer = ObjectFactory.Build<IJsonSerializer>();
     var msg = new SendToUsers
     {
         Users = userIds,
         Payload = JObject.FromObject(message)
     };
     await App.SendMessageAsync(msg);
 }