private void processRequestData(String json) { try { if (json.Trim().Length > 0) { if (smsMessagingImpl != null) { if (json.Contains("deliveryInfoNotification")) { DeliveryInfoNotification deliveryInfoNotification = smsMessagingImpl.ConvertJsonToDeliveryInfoNotification(json); if (smsMessagingImpl.DeliveryStatusPushNotificationsListeners != null) { for (int i = 0; i < smsMessagingImpl.DeliveryStatusPushNotificationsListeners.Count; i++) { smsMessagingImpl.DeliveryStatusPushNotificationsListeners[i].OnDeliveryStatusNotificationReceived(deliveryInfoNotification); } } } else if (json.Contains("inboundSMSMessage")) { if (smsMessagingImpl != null) { if (smsMessagingImpl.InboundMessagePushNotificationsListeners != null) { InboundSMSMessageList smsMessagesList = smsMessagingImpl.ConvertJsonToInboundSMSMessageNotification(json); for (int i = 0; i < smsMessagingImpl.InboundMessagePushNotificationsListeners.Count; i++) { smsMessagingImpl.InboundMessagePushNotificationsListeners[i].OnMessageReceived(smsMessagesList); } } } } } else if (hlrClientImpl != null) { if (json.Contains("terminalRoamingStatusList")) { if (hlrClientImpl.HlrPushNotificationsListeners != null) { RoamingNotification roamingNotification = hlrClientImpl.ConvertJsonToHLRNotification(json); for (int i = 0; i < hlrClientImpl.HlrPushNotificationsListeners.Count; i++) { hlrClientImpl.HlrPushNotificationsListeners[i].OnHLRReceived(roamingNotification); } } } } } } catch (Exception e) { if (LOGGER.IsErrorEnabled) { LOGGER.Error("Error occured while trying to process pushed JSON: " + json + ". Message: " + e.Message); } } }