mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-29 11:02:07 +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:
+41
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Security;
|
||||
|
||||
namespace WindowsPhone.Recipes.Push.Server.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents user subscription.
|
||||
/// </summary>
|
||||
public class Subscription
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the user name.
|
||||
/// </summary>
|
||||
public string UserName { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the notification channel uri.
|
||||
/// </summary>
|
||||
public Uri ChannelUri { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initialize a new instance of this type.
|
||||
/// </summary>
|
||||
public Subscription(string userName, Uri channelUri)
|
||||
{
|
||||
UserName = userName;
|
||||
ChannelUri = channelUri;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initialize a new instance of this type.
|
||||
/// </summary>
|
||||
public Subscription(string userName, string channelUri)
|
||||
: this (userName, new Uri(channelUri, UriKind.Absolute))
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user