sdk/src/com/socialize/notifications/DirectEntityMessageTranslator.java
@Override
	public SimpleNotificationMessage translate(Context context, Bundle data, NotificationMessage message) throws SocializeException {
		SimpleNotificationMessage notify = new SimpleNotificationMessage();

		if(message.getEntityId() != null) {
			notify.setTitle(message.getText());
			notify.setText(message.getText());
			
			data.putLong( Socialize.ENTITY_ID , message.getEntityId());
		}
		else {
			throw new SocializeException("No entity id found in notification of type [" +
					message.getNotificationType() +
					"]");
		}		
		return notify;
	}
@Override
	public SimpleNotificationMessage translate(Context context, Bundle data, NotificationMessage message) throws SocializeException {
		SimpleNotificationMessage notify = new SimpleNotificationMessage();

		if(message.getEntityId() != null) {
			notify.setTitle(message.getText());
			notify.setText(message.getText());
			
			data.putLong( Socialize.ENTITY_ID , message.getEntityId());
		}
		else {
			throw new SocializeException("No entity id found in notification of type [" +
					message.getNotificationType() +
					"]");
		}		
		return notify;
	}
@ Override public SimpleNotificationMessage translate ( Context context , Bundle data , NotificationMessage message ) throws SocializeException { SimpleNotificationMessage notify = new SimpleNotificationMessage ( ) ; if ( message . getEntityId ( ) != null ) { notify . setTitle ( message . getText ( ) ) ; notify . setText ( message . getText ( ) ) ; data . putLong ( Socialize . ENTITY_ID , message . getEntityId ( ) ) ; } else { throw new SocializeException ( "No entity id found in notification of type [" + message . getNotificationType ( ) + "]" ) ; } return notify ; }
/*
(non-Javadoc)
@see com.socialize.notifications.MessageTranslator#translateTo(android.content.Context, android.os.Bundle, com.socialize.notifications.NotificationMessage)
/ * ( non - Javadoc )