Пример #1
0
        public void registerSubscriber(string publisherId, string subscriberId)
        {
            SubscriptionBO subscriber_obj = new SubscriptionBO();

            subscriber_obj.PublisherUserId  = publisherId;
            subscriber_obj.SubscriberUserId = subscriberId;
            SubscriptionBLL.insertSubscription(subscriber_obj);
        }
Пример #2
0
        public void notify_subscribers(string publisherId, WallBO obj, string tagstatus, string twid)
        {
            List <Subscription> subscribers = SubscriptionBLL.getSubscribers(publisherId);

            foreach (Subscription subscriber in subscribers)
            {
                UserBLL userbll = new UserBLL();
                userbll.update(publisherId, subscriber.SubscriberUserId.ToString(), obj, tagstatus, twid);
            }
        }
Пример #3
0
 public void removeSubscriber(string publisherId, string subscriberId)
 {
     SubscriptionBLL.deleteSubscription(publisherId, subscriberId);
 }