com.notnoop.mpns.notifications
Class IconicTileNotification.Builder

java.lang.Object
  extended by com.notnoop.mpns.notifications.IconicTileNotification.Builder
Enclosing class:
IconicTileNotification

public static class IconicTileNotification.Builder
extends Object


Field Summary
protected  List<Map.Entry<String,String>> headers
           
 
Constructor Summary
IconicTileNotification.Builder()
           
 
Method Summary
 IconicTileNotification.Builder backgroundColor(String backgroundColor)
           
 IconicTileNotification build()
           
 A callbackUri(String callbackUri)
          Sets the notification channel URI that the registered callback message will be sent to.
protected  A contentType(String contentType)
          Sets the notification body content type
 IconicTileNotification.Builder count(int count)
           
protected  int deliveryValueOf(DeliveryClass delivery)
           
 IconicTileNotification.Builder iconImage(String iconImage)
           
 IconicTileNotification.Builder isClear(boolean clear)
           
 A messageId(String messageId)
          Sets the message UUID.
 A notificationClass(DeliveryClass delivery)
          Sets the notification batching interval, indicating when the notification should be delivered to the device
 A notificationType(String type)
          Sets the type of the push notification being sent.
 IconicTileNotification.Builder smallIconImage(String smallIconImage)
           
 IconicTileNotification.Builder tileId(String tileId)
           
 IconicTileNotification.Builder title(String title)
           
protected  byte[] toByteArray()
           
 IconicTileNotification.Builder wideContent1(String wideContent1)
           
 IconicTileNotification.Builder wideContent2(String wideContent2)
           
 IconicTileNotification.Builder wideContent3(String wideContent3)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

headers

protected List<Map.Entry<String,String>> headers
Constructor Detail

IconicTileNotification.Builder

public IconicTileNotification.Builder()
Method Detail

tileId

public IconicTileNotification.Builder tileId(String tileId)

isClear

public IconicTileNotification.Builder isClear(boolean clear)

smallIconImage

public IconicTileNotification.Builder smallIconImage(String smallIconImage)

iconImage

public IconicTileNotification.Builder iconImage(String iconImage)

wideContent1

public IconicTileNotification.Builder wideContent1(String wideContent1)

wideContent2

public IconicTileNotification.Builder wideContent2(String wideContent2)

wideContent3

public IconicTileNotification.Builder wideContent3(String wideContent3)

count

public IconicTileNotification.Builder count(int count)

title

public IconicTileNotification.Builder title(String title)

backgroundColor

public IconicTileNotification.Builder backgroundColor(String backgroundColor)

deliveryValueOf

protected int deliveryValueOf(DeliveryClass delivery)

build

public IconicTileNotification build()

toByteArray

protected 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: 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.