sdk/src/com/socialize/notifications/SimpleNotificationMessageTranslator.java
@Override
	public SimpleNotificationMessage translate(Context context, NotificationMessage message) throws SocializeException {
		
		SimpleNotificationMessage msg = newSimpleNotificationMessage();
		StringBuilder titleBuilder = newStringBuilder();
		
		titleBuilder.append(message.getUser());
		
		switch (message.getActionType()) {
			case COMMENT:
				titleBuilder.append(" commented on ");
				break;
			case SHARE:
				titleBuilder.append(" shared ");
				break;
			case LIKE:
				titleBuilder.append(" liked ");
				break;
			case VIEW:
				titleBuilder.append(" viewed ");
				break;			
		}
		
		titleBuilder.append(message.getEntity());
		
		msg.setTitle(titleBuilder.toString());
		msg.setText(message.getText());
		
		return msg;
	}
@Override
	public SimpleNotificationMessage translate(Context context, NotificationMessage message) throws SocializeException {
		
		SimpleNotificationMessage msg = newSimpleNotificationMessage();
		StringBuilder titleBuilder = newStringBuilder();
		
		titleBuilder.append(message.getUser());
		
		switch (message.getActionType()) {
			case COMMENT:
				titleBuilder.append(" commented on ");
				break;
			case SHARE:
				titleBuilder.append(" shared ");
				break;
			case LIKE:
				titleBuilder.append(" liked ");
				break;
			case VIEW:
				titleBuilder.append(" viewed ");
				break;			
		}
		
		titleBuilder.append(message.getEntity());
		
		msg.setTitle(titleBuilder.toString());
		msg.setText(message.getText());
		
		return msg;
	}
@ Override public SimpleNotificationMessage translate ( Context context , NotificationMessage message ) throws SocializeException { SimpleNotificationMessage msg = newSimpleNotificationMessage ( ) ; StringBuilder titleBuilder = newStringBuilder ( ) ; titleBuilder . append ( message . getUser ( ) ) ; switch ( message . getActionType ( ) ) { case COMMENT : titleBuilder . append ( " commented on " ) ; break ; case SHARE : titleBuilder . append ( " shared " ) ; break ; case LIKE : titleBuilder . append ( " liked " ) ; break ; case VIEW : titleBuilder . append ( " viewed " ) ; break ; } titleBuilder . append ( message . getEntity ( ) ) ; msg . setTitle ( titleBuilder . toString ( ) ) ; msg . setText ( message . getText ( ) ) ; return msg ; }
/* (non-Javadoc)
@see com.socialize.notifications.MessageTranslator#translate(android.content.Context, android.os.Bundle, com.socialize.notifications.NotificationMessage)
/ * ( non - Javadoc )