Ejemplo n.º 1
0
 public static void ProcessAction(string actionButtonId, Notification notification)
 {
     if (actionButtonId.Equals(ActionButton.ConsumeAction))
     {
         GetSocial.User.SetNotificationsStatus(new List <string> {
             notification.Id
         }, NotificationStatus.Consumed, () => { }, Debug.LogError);
         GetSocial.ProcessAction(notification.NotificationAction);
     }
     else if (actionButtonId.Equals(ActionButton.IgnoreAction))
     {
         GetSocial.User.SetNotificationsStatus(new List <string> {
             notification.Id
         }, NotificationStatus.Ignored, () => { }, Debug.LogError);
     }
 }