C# 클래스 PhotoSharingApp.AppService.Notifications.NotificationHandler

Sends Push notification to registered tag.
상속: INotificationHandler
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing

공개 메소드들

메소드 설명
SendPushAsync ( PushNotificationPlatform platform, string userNotificationTag, string message, string thumbnailUrl = "", string photoId = "", int goldCount ) : Task

Sends a rich push notification message with a thumbnail image and arguments to launch the image. Also sends live tile and badge notification if the optional parameters are passed. Otherwise, only a simple text push message is sent.

비공개 메소드들

메소드 설명
GenerateBadgeNotification ( uint goldCount ) : string

Generates badge notification of goldCount change for receiver.

GenerateTileNotification ( string thumbnailUrl ) : string

Generates tile notification of gold notification using the receiver's picture

메소드 상세

SendPushAsync() 공개 메소드

Sends a rich push notification message with a thumbnail image and arguments to launch the image. Also sends live tile and badge notification if the optional parameters are passed. Otherwise, only a simple text push message is sent.
public SendPushAsync ( PushNotificationPlatform platform, string userNotificationTag, string message, string thumbnailUrl = "", string photoId = "", int goldCount ) : Task
platform PushNotificationPlatform The platform specific notification service to use.
userNotificationTag string The user notification tag to send notification to.
message string The message to display on the notification toast.
thumbnailUrl string Optional - The thumbnail Url of the photo to display in notification.
photoId string Optional - The photoId of the photo to send as activation argument.
goldCount int Optional - The goldCount of the photo's owner.
리턴 Task