javapns/src/main/java/javapns/notification/PushNotificationPayload.java
/**
	 * Create a pre-defined payload with a simple alert message, a badge and a sound.
	 * 
	 * @param message the alert message
	 * @param badge the badge
	 * @param sound the name of the sound
	 * @return a ready-to-send payload
	 */
Create a pre-defined payload with a simple alert message, a badge and a sound.

@param message the alert message
@param badge the badge
@param sound the name of the sound
@return a ready-to-send payload
Create a pre - defined payload with a simple alert message a badge and a sound . @param message the alert message @param badge the badge @param sound the name of the sound @return a ready - to - send payload
public static Payload combined(String message, int badge, String sound) {
		PushNotificationPayload payload = complex();
		try {
			if (message != null) payload.addAlert(message);
			if (badge >= 0) payload.addBadge(badge);
			if (sound != null) payload.addSound(sound);
		} catch (JSONException e) {
		}
		return payload;
	}
public static Payload combined ( String message , int badge , String sound ) { PushNotificationPayload payload = complex ( ) ; try { if ( message != null ) payload . addAlert ( message ) ; if ( badge >= 0 ) payload . addBadge ( badge ) ; if ( sound != null ) payload . addSound ( sound ) ; } catch ( JSONException e ) { } return payload ; }
Create a pre-defined payload with a simple alert message, a badge and a sound.
Create a pre - defined payload with a simple alert message a badge and a sound .