 
 		@SendWindows8Data(requestOptions, tileData)
 
-	SendWP7Notification: (requestOptions, payload) =>
+	SendWindowsPhoneNotification: (requestOptions, payload) =>
 		request = http.request(requestOptions, (res) =>
 			notificationStatus = res.headers['x-notificationstatus'].toLowerCase()
 			deviceConnectionStatus = res.headers['x-deviceconnectionstatus'].toLowerCase()

							logger.verbose("Latest Author: #{author} Body: #{body}")
							logger.verbose("@userInfo #{JSON.stringify(@userInfo)}")
							if (@userInfo.hasOwnProperty('notificationUri'))
								if ((@userInfo.notificationType is '2') or (@userInfo.notificationType is '1'))
									#The count of new replies is the total number of current replies minus the number of replies the app last knew about
									@SendWP7TileNotification(parseInt(totalResults) - parseInt(@userInfo.replyCount), author, body)
									if (@userInfo.notificationType is '2')
										@SendWP7ToastNotification(author, body)
								else if (@userInfo.notificationType is '3')
									@SendWindows8Notification(parseInt(totalResults) - parseInt(@userInfo.replyCount), author, body)
							else 

		}

		logger.info('**Sending toast notification\n' + toastData)
		@SendWindowsPhoneNotification(requestOptions, toastData)

	SendWP8TileNotification: (count, author, preview) =>
		parsedUri = url.parse(@userInfo.notificationUri)

		tileMessage = """<?xml version="1.0" encoding="utf-8"?>
		  <wp:Notification xmlns:wp="WPNotification" Version="2.0">
			  <wp:Tile Id="" Template="IconicTile">
				  <wp:SmallIconImage>Images/TileIconSmall.png</wp:SmallIconImage>
				  <wp:IconImage>Images/TileIconMedium.png</wp:IconImage>
				  <wp:WideContent1>#{author}</wp:WideContent1>
				  <wp:WideContent2>#{preview}</wp:WideContent2>
				  <wp:WideContent3 Action="Clear"></wp:WideContent3>
				  <wp:Count>#{count}</wp:Count>
				  <wp:Title>Latest Chatty 8</wp:Title>
				  <wp:BackgroundColor Action="Clear">#00FFFFFF</wp:BackgroundColor>
			  </wp:Tile>
		  </wp:Notification>"""

		requestOptions = {
			hostname: parsedUri.hostname,
			port: parsedUri.port,
			path: parsedUri.path,
			method: 'POST',
			headers: {
				'Content-Type': 'text/xml',
				'Content-Length': tileMessage.length,
				'X-WindowsPhone-Target': 'token',
				'X-NotificationClass': '1'
			}
		}

		logger.info('**Sending Windows Phone 8 tile notification\n' + tileMessage)
		@SendWindowsPhoneNotification(requestOptions, tileMessage)


	SendWP7TileNotification: (count, author, preview) =>
		parsedUri = url.parse(@userInfo.notificationUri)
