com.notnoop.mpns.notifications
Class FlipTileNotification.Builder
java.lang.Object
com.notnoop.mpns.notifications.FlipTileNotification.Builder
- Enclosing class:
- FlipTileNotification
public static class FlipTileNotification.Builder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
headers
protected List<Map.Entry<String,String>> headers
FlipTileNotification.Builder
public FlipTileNotification.Builder()
tileId
public FlipTileNotification.Builder tileId(String tileId)
isClear
public FlipTileNotification.Builder isClear(boolean clear)
backgroundImage
public FlipTileNotification.Builder backgroundImage(String backgroundImage)
title
public FlipTileNotification.Builder title(String title)
backBackgroundImage
public FlipTileNotification.Builder backBackgroundImage(String backBackgroundImage)
backTitle
public FlipTileNotification.Builder backTitle(String backTitle)
backContent
public FlipTileNotification.Builder backContent(String backContent)
count
public FlipTileNotification.Builder count(int count)
smallBackgroundImage
public FlipTileNotification.Builder smallBackgroundImage(String smallBackgroundImage)
wideBackgroundImage
public FlipTileNotification.Builder wideBackgroundImage(String wideBackgroundImage)
wideBackBackgroundImage
public FlipTileNotification.Builder wideBackBackgroundImage(String wideBackBackgroundImage)
wideBackContent
public FlipTileNotification.Builder wideBackContent(String wideBackContent)
deliveryValueOf
protected int deliveryValueOf(DeliveryClass delivery)
build
public FlipTileNotification build()
toByteArray
public byte[] toByteArray()
messageId
public A messageId(String messageId)
- Sets the message UUID.
The message UUID is optional application-specific identifier for
book-keeping and associate it with the response.
- Parameters:
messageId - notification message ID
- Returns:
- this
notificationClass
public A notificationClass(DeliveryClass delivery)
- Sets the notification batching interval, indicating when the notification
should be delivered to the device
- Parameters:
delivery - batching interval
- Returns:
- this
notificationType
public A notificationType(String type)
- Sets the type of the push notification being sent.
As of Windows Phone OS 7.0, the supported types are:
- token (for Tile messages)
- toast
- raw
This method should probably not be called directly, as the concrete
builder class will set the appropriate notification type.
- Parameters:
type - the notification type
- Returns:
- this
callbackUri
public A callbackUri(String callbackUri)
- Sets the notification channel URI that the registered callback message
will be sent to.
When using an authenticated web service, this parameter is required.
- Parameters:
callbackUri - the notification channel URI
- Returns:
- this
contentType
protected A contentType(String contentType)
- Sets the notification body content type
- Parameters:
contentType - the content type of the body
- Returns:
- this
Copyright © 2015. All Rights Reserved.