public static LqNotificationPush newPush(String topic, String summary, String trackingId, Throwable throwable, String callbackUrl, String...traits) { return newPush(topic, summary, trackingId, throwable, Collections.emptyList(), callbackUrl, BeanUtils.toMap(traits)); }
public static LqNotificationPush newPush(String topic, String summary, String trackingId, Throwable throwable, Collection<LqAttachment> attachments, String callbackUrl, String...traits) { return newPush(topic, summary, trackingId, throwable, attachments, callbackUrl, BeanUtils.toMap(traits)); }
public static SmtpEmailPush newPush(String toAddress, String fromAddress, String emailSubject, String htmlContent, String callbackUrl, String... traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new SmtpEmailPush(toAddress, fromAddress, emailSubject, htmlContent, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static SesEmailPush newPush(String toAddress, String fromAddress, String emailSubject, String htmlContent, String callbackUrl, String... traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new SesEmailPush(toAddress, fromAddress, emailSubject, htmlContent, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static LqNotificationPush newPush(String topic, String summary, String trackingId, String callbackUrl, Map<String,String> traits) { return newPush(topic, summary, trackingId, null, Collections.emptyList(), callbackUrl, traits); }
public static NotificationPushV1 newPush(String message, String callbackUrl, String...traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new NotificationPushV1(message, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static EmailPush newPush(String toAddress, String fromAddress, String emailSubject, String htmlContent, String callbackUrl, String... traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new EmailPush(toAddress, fromAddress, emailSubject, htmlContent, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static XmppPush newPush(String recipient, String message, String callbackUrl, String...traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new XmppPush( recipient, message, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static OcsPush newPush(String recipient,String message, String callbackUrl, String...traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new OcsPush(recipient, message, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static EmailToSmsPushV1 newPush(String toAddress, String fromAddress, String emailSubject, String callbackUrl, String... traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new EmailToSmsPushV1(toAddress, fromAddress, emailSubject, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
public static TwilioSmsPush newPush(String from, String recipient,String message, String callbackUrl, String...traits) { InetAddress remoteAddress = PushUtils.getLocalHost(); return new TwilioSmsPush(from, recipient, message, callbackUrl, remoteAddress.getCanonicalHostName(), remoteAddress.getHostAddress(), BeanUtils.toMap(traits)); }
String msg = String.format("<html><head><title>Some Email</title></head><body style='background-color:red'><div style='background-color:#c0c0ff'><h1>Testing 123</h1>This is a test message from Cosmic Push sent at %s.</div></body>", when); String subject = "ASES test message from Cosmic Push"; SesEmailPush push = SesEmailPush.newPush(toAddress, fromAddress, subject, msg, null, BeanUtils.toMap("ases-test:true"));