/// <summary>
 /// Create a new Subscription object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="mode">Initial value of the Mode property.</param>
 /// <param name="verify">Initial value of the Verify property.</param>
 /// <param name="topic">Initial value of the Topic property.</param>
 /// <param name="callback">Initial value of the Callback property.</param>
 /// <param name="digest">Initial value of the Digest property.</param>
 /// <param name="verified">Initial value of the Verified property.</param>
 /// <param name="pendingDeletion">Initial value of the PendingDeletion property.</param>
 /// <param name="pubSubHubUser">Initial value of the PubSubHubUser property.</param>
 public static Subscription CreateSubscription(global::System.Int32 id, global::System.String mode, global::System.String verify, global::System.String topic, global::System.String callback, global::System.Boolean digest, global::System.Boolean verified, global::System.Boolean pendingDeletion, global::System.String pubSubHubUser)
 {
     Subscription subscription = new Subscription();
     subscription.Id = id;
     subscription.Mode = mode;
     subscription.Verify = verify;
     subscription.Topic = topic;
     subscription.Callback = callback;
     subscription.Digest = digest;
     subscription.Verified = verified;
     subscription.PendingDeletion = pendingDeletion;
     subscription.PubSubHubUser = pubSubHubUser;
     return subscription;
 }
        private SubscriptionModel CreateSubscriptionModelFromSubscription(Subscription sub)
        {
            var model = new SubscriptionModel()
            {
                Id = sub.Id,
                Callback = sub.Callback,
                Mode = sub.Mode,
                Digest = sub.Digest,
                Topic = sub.Topic,
                Verify = sub.Verify,
                PendingDeletion = sub.PendingDeletion,
                Verified = sub.Verified,
                LastUpdated = sub.LastUpdated,
                PubSubHubUser = sub.PubSubHubUser
            };

            return model;
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the SubscriptionsSet EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSubscriptionsSet(Subscription subscription)
 {
     base.AddObject("SubscriptionsSet", subscription);
 }