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
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
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))
|
|
{
|
|
}
|
|
}
|
|
}
|