Example #1
0
		/// <summary>
		/// Publishes the specified music information to contacts on the user's
		/// roster.
		/// </summary>
		/// <param name="tune">The tune information to publish.</param>
		/// <exception cref="ArgumentNullException">The tune parameter is
		/// null.</exception>
		/// <exception cref="NotSupportedException">The server does not support the
		/// 'Personal Eventing Protocol' extension.</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>
		/// <remarks>Publishing no information (i.e. calling Publish without any parameters
		/// is considered a "stop command" to disable publishing).</remarks>
		public void Publish(TuneInformation tune) {
			tune.ThrowIfNull("tune");
			Publish(tune.Title, tune.Artist, tune.Track, tune.Length,
				tune.Rating, tune.Source, tune.Uri);
		}
Example #2
0
 public void Publish(TuneInformation tune)
 {
     tune.ThrowIfNull <TuneInformation>("tune");
     this.Publish(tune.Title, tune.Artist, tune.Track, tune.Length, tune.Rating, tune.Source, tune.Uri);
 }