/// <summary> /// Initializes a new instance of the StatusEventArgs class. /// </summary> /// <exception cref="ArgumentNullException">The jid parameter or the status /// parameter is null.</exception> public StatusEventArgs(Jid jid, Status status) { jid.ThrowIfNull("jid"); status.ThrowIfNull("status"); Jid = jid; Status = status; }
/// <summary> /// Sets the availability status. /// </summary> /// <param name="status">An instance of the Status class.</param> /// <exception cref="ArgumentNullException">The status parameter is null.</exception> /// <exception cref="ArgumentException">The Availability property of the status /// parameter has a value of Availability.Offline.</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> public void SetStatus(Status status) { AssertValid(); status.ThrowIfNull("status"); im.SetStatus(status); }