public static FacebookNotification ForSingleResult(FacebookMessageTransportResponse response, int resultIndex) { var result = new FacebookNotification(); result.Tag = response.Message.Tag; result.RegistrationIds.Add(response.Message.RegistrationIds[resultIndex]); result.CallbackUrl = response.Message.CallbackUrl; result.Message = response.Message.Message; result.Category = response.Message.Category; result.NotificationType = response.Message.NotificationType; result.Title = response.Message.Title; return result; }
public static FacebookNotification ForSingleRegistrationId(FacebookNotification msg, string registrationId) { var result = new FacebookNotification(); result.Tag = msg.Tag; result.RegistrationIds.Add(registrationId); result.CallbackUrl = msg.CallbackUrl; result.Message = msg.Message; result.Category = msg.Category; result.Title = msg.Title; result.NotificationType = msg.NotificationType; return result; }