public void registerSubscriber(string publisherId, string subscriberId) { SubscriptionBO subscriber_obj = new SubscriptionBO(); subscriber_obj.PublisherUserId = publisherId; subscriber_obj.SubscriberUserId = subscriberId; SubscriptionBLL.insertSubscription(subscriber_obj); }
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); } }
public void removeSubscriber(string publisherId, string subscriberId) { SubscriptionBLL.deleteSubscription(publisherId, subscriberId); }