/// <summary>
 /// Send notification to any GetSocial user. Also you can use placeholders in <see cref="SendNotificationPlaceholders"/>.
 /// </summary>
 /// <param name="content">Content of push notification.</param>
 /// <param name="target">List of user IDs or placeholders who will receive the notification.</param>
 /// <param name="success">Notifies if operation was successful.</param>
 /// <param name="failure">Called if operation failed.</param>
 public static void Send(NotificationContent content, SendNotificationTarget target, Action success, Action <GetSocialError> failure)
 {
     GetSocialFactory.Bridge.Send(content, target, success, failure);
 }
Example #2
0
 public void Send(NotificationContent content, SendNotificationTarget target, Action success, Action <GetSocialError> failure)
 {
     CallAsyncVoid("Notifications.send", GSJson.Serialize(new SendNotificationBody {
         Target = target, Content = content
     }), success, failure);
 }