public void OwnerModifySubscriptionStates(Jid to, Jid from, string node, owner.Subscriber[] subscribers, IqCB cb, object cbArgs) { owner.PubSubIq pubsubIq = new owner.PubSubIq(IqType.set, to); if (from != null) { pubsubIq.From = from; } owner.Subscribers subs = new owner.Subscribers(node); subs.AddSubscribers(subscribers); pubsubIq.PubSub.Subscribers = subs; if (cb == null) { m_connection.Send(pubsubIq); } else { m_connection.IqGrabber.SendIq(pubsubIq, cb, cbArgs); } }
public void OwnerModifySubscriptionState(Jid to, Jid from, string node, Jid subscriber, SubscriptionState state, IqHandler cb) { owner.PubSubIq pubsubIq = new owner.PubSubIq(IqType.set, to); if (from != null) { pubsubIq.From = from; } owner.Subscribers subs = new owner.Subscribers(node); subs.AddSubscriber(new owner.Subscriber(subscriber, state)); pubsubIq.PubSub.Subscribers = subs; if (cb == null) { m_connection.Send(pubsubIq); } else { m_connection.IqGrabber.SendIq(pubsubIq, cb); } }
public void OwnerModifySubscriptionStates(Jid to, Jid from, string node, owner.Subscriber[] subscribers, IqCB cb, object cbArgs) { owner.PubSubIq pubsubIq = new owner.PubSubIq(IqType.set, to); if (from != null) pubsubIq.From = from; owner.Subscribers subs = new owner.Subscribers(node); subs.AddSubscribers(subscribers); pubsubIq.PubSub.Subscribers = subs; if (cb == null) m_connection.Send(pubsubIq); else m_connection.IqGrabber.SendIq(pubsubIq, cb, cbArgs); }
public void OwnerModifySubscriptionState(Jid to, Jid from, string node, Jid subscriber, SubscriptionState state, IqHandler cb) { owner.PubSubIq pubsubIq = new owner.PubSubIq(IqType.set, to); if (from != null) pubsubIq.From = from; owner.Subscribers subs = new owner.Subscribers(node); subs.AddSubscriber(new owner.Subscriber(subscriber, state)); pubsubIq.PubSub.Subscribers = subs; if (cb == null) m_connection.Send(pubsubIq); else m_connection.IqGrabber.SendIq(pubsubIq, cb); }