using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security; namespace WindowsPhone.Recipes.Push.Server.Models { /// /// Represents user subscription. /// public class Subscription { /// /// Gets the user name. /// public string UserName { get; private set; } /// /// Gets the notification channel uri. /// public Uri ChannelUri { get; private set; } /// /// Initialize a new instance of this type. /// public Subscription(string userName, Uri channelUri) { UserName = userName; ChannelUri = channelUri; } /// /// Initialize a new instance of this type. /// public Subscription(string userName, string channelUri) : this (userName, new Uri(channelUri, UriKind.Absolute)) { } } }