Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the RosterUpdatedEventArgs class.
 /// </summary>
 /// <param name="item">The item the RosterUpdated event is being raised
 /// for.</param>
 /// <param name="removed">Set to true if the item is being removed from
 /// the roster.</param>
 /// <exception cref="ArgumentNullException">The item parameter is null.</exception>
 public RosterUpdatedEventArgs(RosterItem item, bool removed)
 {
     item.ThrowIfNull("item");
     Item    = item;
     Removed = removed;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Removes the specified item from the user's roster.
 /// </summary>
 /// <param name="item">The item to remove.</param>
 /// <exception cref="ArgumentNullException">The item parameter is null.</exception>
 /// <exception cref="IOException">There was a failure while writing to or reading
 /// from the network.</exception>
 /// <exception cref="InvalidOperationException">The XmppClient instance is not
 /// connected to a remote host, or the XmppClient instance has not authenticated with
 /// the XMPP server.</exception>
 /// <exception cref="ObjectDisposedException">The XmppClient object has been
 /// disposed.</exception>
 /// <exception cref="XmppErrorException">The server returned an XMPP error code.
 /// Use the Error property of the XmppErrorException to obtain the specific
 /// error condition.</exception>
 /// <exception cref="XmppException">The server returned invalid data or another
 /// unspecified XMPP error occurred.</exception>
 public void RemoveContact(RosterItem item)
 {
     AssertValid();
     item.ThrowIfNull("item");
     im.RemoveFromRoster(item);
 }
 /// <summary>
 /// Initializes a new instance of the RosterUpdatedEventArgs class.
 /// </summary>
 /// <param name="item">The item the RosterUpdated event is being raised
 /// for.</param>
 /// <param name="removed">Set to true if the item is being removed from
 /// the roster.</param>
 /// <exception cref="ArgumentNullException">The item parameter is null.</exception>
 public RosterUpdatedEventArgs(RosterItem item, bool removed)
 {
     item.ThrowIfNull("item");
     Item = item;
     Removed = removed;
 }