Presence.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Globalization;
  5. using System.Xml;
  6. namespace FastReport.Messaging.Xmpp
  7. {
  8. /// <summary>
  9. /// Represents the XMPP Presence.
  10. /// </summary>
  11. public class Presence : Stanza
  12. {
  13. #region Constructors
  14. /// <summary>
  15. /// Initializes a new instance of the <see cref="Presence"/> class with specified parameters.
  16. /// </summary>
  17. /// <param name="nspace">The namespace of the presence.</param>
  18. /// <param name="jidFrom">The JID of the sender.</param>
  19. /// <param name="jidTo">The JID of the recipient.</param>
  20. /// <param name="id">The ID of the presence.</param>
  21. /// <param name="language">The language of the presence.</param>
  22. /// <param name="data">The data of the presence.</param>
  23. public Presence(string nspace, string jidFrom, string jidTo, string id, CultureInfo language, List<XmlElement> data)
  24. : base(nspace, jidFrom, jidTo, id, language, data)
  25. {
  26. }
  27. /// <summary>
  28. /// Initializes a new instance of the <see cref="Presence"/> class using specified XmlElement instance.
  29. /// </summary>
  30. /// <param name="data">The XmlElement instance using like a data.</param>
  31. public Presence(XmlElement data) : base(data)
  32. {
  33. }
  34. #endregion // Constructors
  35. }
  36. }