public class UnifiedMessage extends Object
To construct a message use the withMessage()
like this :
UnifiedMessage unifiedMessage = UnifiedMessage.withMessage()
.alert("Hello")
.sound("default")
.criteria()
.variants("c3f0a94f-48de-4b77-a08e-68114460857e") // e.g. HR_Premium
.aliases("mike", "john")
.categories("sport", "world cup")
.deviceType("iPad", "AndroidTablet")
.build();
Modifier and Type | Class and Description |
---|---|
static class |
UnifiedMessage.Builder
Deprecated.
Please use one of the static methods in
UnifiedMessage |
static class |
UnifiedMessage.ConfigBuilder |
static class |
UnifiedMessage.CriteriaBuilder |
static class |
UnifiedMessage.MessageBuilder |
Modifier and Type | Method and Description |
---|---|
UnifiedMessage.ConfigBuilder |
getConfig() |
UnifiedMessage.CriteriaBuilder |
getCriteria() |
UnifiedMessage.MessageBuilder |
getMessage() |
org.jboss.aerogear.unifiedpush.message.UnifiedPushMessage |
getObject() |
static UnifiedMessage.ConfigBuilder |
withConfig() |
static UnifiedMessage.CriteriaBuilder |
withCriteria() |
static UnifiedMessage.MessageBuilder |
withMessage() |
public static UnifiedMessage.MessageBuilder withMessage()
public static UnifiedMessage.CriteriaBuilder withCriteria()
public static UnifiedMessage.ConfigBuilder withConfig()
public UnifiedMessage.MessageBuilder getMessage()
public UnifiedMessage.CriteriaBuilder getCriteria()
public UnifiedMessage.ConfigBuilder getConfig()
public org.jboss.aerogear.unifiedpush.message.UnifiedPushMessage getObject()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.