Ejemplo n.º 1
0
        /// <summary>
        /// Gets the payload for tile push notification.
        /// </summary>
        /// <param name="push">The push.</param>
        /// <returns></returns>
        private string GetPayload(WindowsPhoneTile push)
        {
            string tileMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
                                 "<wp:Notification xmlns:wp=\"WPNotification\">" +
                                 "<wp:Tile>" +
                                 "<wp:BackgroundImage>" + push.BackgroundImage + "</wp:BackgroundImage>" +
                                 "<wp:Count>" + push.Count + "</wp:Count>" +
                                 "<wp:Title>" + push.Title + "</wp:Title>" +
                                 "<wp:BackBackgroundImage>" + push.BackBackgroundImage + "</wp:BackBackgroundImage>" +
                                 "<wp:BackTitle>" + push.BackTitle + "</wp:BackTitle>" +
                                 "<wp:BackContent>" + push.BackContent + "</wp:BackContent>" +
                                 "</wp:Tile> " +
                                 "</wp:Notification>";

            return(tileMessage);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the payload for tile push notification.
        /// </summary>
        /// <param name="push">The push.</param>
        /// <returns></returns>
        private string GetPayload(WindowsPhoneTile push)
        {
            string tileMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
                  "<wp:Notification xmlns:wp=\"WPNotification\">" +
                      "<wp:Tile>" +
                        "<wp:BackgroundImage>" + push.BackgroundImage + "</wp:BackgroundImage>" +
                        "<wp:Count>" + push.Count + "</wp:Count>" +
                        "<wp:Title>" + push.Title + "</wp:Title>" +
                        "<wp:BackBackgroundImage>" + push.BackBackgroundImage + "</wp:BackBackgroundImage>" +
                        "<wp:BackTitle>" + push.BackTitle + "</wp:BackTitle>" +
                        "<wp:BackContent>" + push.BackContent + "</wp:BackContent>" +
                     "</wp:Tile> " +
                  "</wp:Notification>";

            return tileMessage;
        }