/** The shortcut of building a simple message object to all platforms and all audiences */ public static PushPayload messageAll(String msgContent) { return new Builder() .setPlatform(Platform.all()) .setAudience(Audience.all()) .setMessage(Message.content(msgContent)) .build(); }
/** * The shortcut of building a simple alert notification object to all platforms and all audiences */ public static PushPayload alertAll(String alert) { return new Builder() .setPlatform(Platform.all()) .setAudience(Audience.all()) .setNotification(Notification.alert(alert)) .build(); }