mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-29 07:01:38 +03:00
push notification helper library
http://windowsteamblog.com/windows_phone/b/wpdev/archive/2011/01/14/windows-push-notification-server-side-helper-library.aspx http://create.msdn.com/en-us/education/catalog/article/pnhelp-wp7
This commit is contained in:
+39
@@ -0,0 +1,39 @@
|
||||
using System.IO;
|
||||
using System.ServiceModel;
|
||||
using System.ServiceModel.Web;
|
||||
using System.Xml.Linq;
|
||||
using System;
|
||||
|
||||
using WindowsPhone.Recipes.Push.Server.Models;
|
||||
|
||||
namespace WindowsPhone.Recipes.Push.Server.Services
|
||||
{
|
||||
/// <summary>
|
||||
/// Push server services.
|
||||
/// </summary>
|
||||
[ServiceContract]
|
||||
public interface IPushService
|
||||
{
|
||||
/// <summary>
|
||||
/// Register user name with a push channel uri.
|
||||
/// </summary>
|
||||
/// <param name="userName">User name.</param>
|
||||
/// <param name="channelUri">Push notification channel uri.</param>
|
||||
[OperationContract]
|
||||
void Register(string userName, Uri channelUri);
|
||||
|
||||
/// <summary>
|
||||
/// Get current server information/status.
|
||||
/// </summary>
|
||||
/// <returns>Current server status.</returns>
|
||||
[OperationContract]
|
||||
ServerInfo GetServerInfo();
|
||||
|
||||
/// <summary>
|
||||
/// Send a tile update with given parameter.
|
||||
/// </summary>
|
||||
/// <returns>User parameter to send with the tile update request.</returns>
|
||||
[OperationContract]
|
||||
void UpdateTile(Uri channelUri, string parameter);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user