mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-28 23:01:53 +03:00
00f97e41d6
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
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
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);
|
|
}
|
|
}
|