Beispiel #1
0
 public IQ(IqType type, Jid from, Jid to)
     : this()
 {
     this.Type   = type;
     this.From   = from;
     this.To     = to;
 }
Beispiel #2
0
 public IQ(IqType type, Jid from, Jid to) : base(type, from, to)
 {
     Namespace = Uri.ACCEPT;
 }
Beispiel #3
0
 public PrivateIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
Beispiel #4
0
		/// <summary>
		/// Performs an IQ set/get request asynchronously and optionally invokes a
		/// callback method when the IQ response comes in.
		/// </summary>
		/// <param name="type">The type of the request. This must be either
		/// IqType.Set or IqType.Get.</param>
		/// <param name="to">The JID of the intended recipient for the stanza.</param>
		/// <param name="from">The JID of the sender.</param>
		/// <param name="data">he content of the stanza.</param>
		/// <param name="language">The language of the XML character data of
		/// the stanza.</param>
		/// <param name="callback">A callback method which is invoked once the
		/// IQ response from the server comes in.</param>
		/// <returns>The ID value of the pending IQ stanza request.</returns>
		/// <exception cref="ArgumentException">The type parameter is not IqType.Set
		/// or IqType.Get.</exception>
		/// <exception cref="ObjectDisposedException">The XmppCore object has been
		/// disposed.</exception>
		/// <exception cref="InvalidOperationException">The XmppCore instance is not
		/// connected to a remote host.</exception>
		/// <exception cref="IOException">There was a failure while writing to the
		/// network.</exception>
		public string IqRequestAsync(IqType type, Jid to = null, Jid from = null,
			XmlElement data = null, CultureInfo language = null,
			Action<string, Iq> callback = null) {
			AssertValid();
			return IqRequestAsync(new Iq(type, null, to, from, data, language), callback);
		}
Beispiel #5
0
 public VersionIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Beispiel #6
0
 public BindIq(IqType type, string resource)
     : this(type)
 {
     m_Bind.Resource = resource;
 }
Beispiel #7
0
 public PubSubIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
Beispiel #8
0
 public StorageIq(IqType type)
     : this()
 {
     this.Type = type;
 }
 public StorageIq(IqType type, Jid to) : this(type)
 {
     To = to;
 }
 public StorageIq(IqType type) : this()
 {
     Type = type;
 }
Beispiel #11
0
 public RpcIq(IqType type, Jid to, Jid from) : this(type, to)
 {
     From = from;
 }
Beispiel #12
0
 public RpcIq(IqType type, Jid to) : this(type)
 {
     To = to;
 }
Beispiel #13
0
 public RpcIq(IqType type) : this()
 {
     Type = type;
 }
Beispiel #14
0
 public SessionIq(IqType type, Jid to) : this()
 {
     this.Type = type;
     this.To   = to;
 }
Beispiel #15
0
 public SessionIq(IqType type) : this()
 {
     this.Type = type;
 }
Beispiel #16
0
		public AvatarIq(IqType type, Jid to) : this(type)
		{
			this.To = to;
		}
Beispiel #17
0
 public AuthIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
 public StorageIq(IqType type, Jid to, Jid from) : this(type, to)
 {
     From = from;
 }
Beispiel #19
0
 public StorageIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
Beispiel #20
0
 public AuthIq(IqType type) : this()
 {
     this.Type = type;
 }
Beispiel #21
0
 public FeatureNegIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Beispiel #22
0
 public AuthIq(IqType type, Jid to) : this(type)
 {
     this.To = to;
 }
Beispiel #23
0
 public BrowseIq(IqType type, Jid to) : this(type)
 {
     To = to;
 }
Beispiel #24
0
 public BindIq(IqType type) : this()
 {
     this.Type = type;
 }
Beispiel #25
0
 public VersionIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
Beispiel #26
0
 public BindIq(IqType type, Jid to) : this()
 {
     this.Type = type;
     this.To   = to;
 }
Beispiel #27
0
 public PrivateIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Beispiel #28
0
 public BindIq(IqType type, Jid to, string resource) : this(type, to)
 {
     m_Bind.Resource = resource;
 }
Beispiel #29
0
 public PrivacyIq(IqType type, Jid to)
     : this(type)
 {
     To = to;
 }
 public FeatureNegIq(IqType type) : this()
 {
     Type = type;
 }
Beispiel #31
0
		public AvatarIq(IqType type) : this()
		{			
			this.Type = type;		
		}
Beispiel #32
0
 public LastIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Beispiel #33
0
 public AuthIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Beispiel #34
0
 public LastIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
Beispiel #35
0
 public AuthIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
Beispiel #36
0
 public OobIq(IqType type) : this()
 {
     this.Type = type;
 }
Beispiel #37
0
 public StorageIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
Beispiel #38
0
 public OobIq(IqType type, Jid to) : this(type)
 {
     this.To = to;
 }
Beispiel #39
0
 public PubSubIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Beispiel #40
0
 public OobIq(IqType type, Jid to, Jid from) : this(type, to)
 {
     this.From = from;
 }
Beispiel #41
0
 public PubSubIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
Beispiel #42
0
 public PrivacyIq(IqType type)
     : this()
 {
     Type = type;
 }
Beispiel #43
0
 public BindIq(IqType type)
     : this()
 {
     Type = type;
 }
Beispiel #44
0
 public PrivacyIq(IqType type, Jid to)
     : this(type)
 {
     To = to;
 }
Beispiel #45
0
 public BrowseIq(IqType type) : this()
 {
     Type = type;
 }
Beispiel #46
0
 public PrivacyIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     From = from;
 }
Beispiel #47
0
 public BrowseIq(IqType type, Jid to, Jid from) : this(type, to)
 {
     From = from;
 }
Beispiel #48
0
 public VcardIq(IqType type) : this()
 {
     Type = type;
 }
Beispiel #49
0
 public VersionIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
Beispiel #50
0
 public VcardIq(IqType type, Vcard vcard) : this(type)
 {
     Vcard = vcard;
 }
Beispiel #51
0
		/// <summary>
		/// Performs an IQ set/get request and blocks until the response IQ comes in.
		/// </summary>
		/// <param name="type">The type of the request. This must be either
		/// IqType.Set or IqType.Get.</param>
		/// <param name="to">The JID of the intended recipient for the stanza.</param>
		/// <param name="from">The JID of the sender.</param>
		/// <param name="data">he content of the stanza.</param>
		/// <param name="language">The language of the XML character data of
		/// the stanza.</param>
		/// <param name="millisecondsTimeout">The number of milliseconds to wait
		/// for the arrival of the IQ response or -1 to wait indefinitely.</param>
		/// <returns>The IQ response sent by the server.</returns>
		/// <exception cref="ArgumentException">The type parameter is not
		/// IqType.Set or IqType.Get.</exception>
		/// <exception cref="ArgumentOutOfRangeException">The value of millisecondsTimeout
		/// is a negative number other than -1, which represents an indefinite
		/// timeout.</exception>
		/// <exception cref="ObjectDisposedException">The XmppCore object has been
		/// disposed.</exception>
		/// <exception cref="InvalidOperationException">The XmppCore instance is not
		/// connected to a remote host.</exception>
		/// <exception cref="IOException">There was a failure while writing to the
		/// network, or there was a failure reading from the network.</exception>
		/// <exception cref="TimeoutException">A timeout was specified and it
		/// expired.</exception>
		public Iq IqRequest(IqType type, Jid to = null, Jid from = null,
			XmlElement data = null, CultureInfo language = null,
			int millisecondsTimeout = -1) {
			AssertValid();
			return IqRequest(new Iq(type, null, to, from, data, language), millisecondsTimeout);
		}
Beispiel #52
0
 public VcardIq(IqType type, Jid to) : this(type)
 {
     To = to;
 }
Beispiel #53
0
		/// <summary>
		/// Sends an IQ response for the IQ request with the specified id.
		/// </summary>
		/// <param name="type">The type of the response. This must be either
		/// IqType.Result or IqType.Error.</param>
		/// <param name="id">The id of the IQ request.</param>
		/// <param name="to">The JID of the intended recipient for the stanza.</param>
		/// <param name="from">The JID of the sender.</param>
		/// <param name="data">he content of the stanza.</param>
		/// <param name="language">The language of the XML character data of
		/// the stanza.</param>
		/// <exception cref="ArgumentException">The type parameter is not IqType.Result
		/// or IqType.Error.</exception>
		/// <exception cref="ObjectDisposedException">The XmppCore object has been
		/// disposed.</exception>
		/// <exception cref="InvalidOperationException">The XmppCore instance is not
		/// connected to a remote host.</exception>
		/// <exception cref="IOException">There was a failure while writing to the
		/// network.</exception>
		public void IqResponse(IqType type, string id, Jid to = null, Jid from = null,
			XmlElement data = null, CultureInfo language = null) {
			AssertValid();
			IqResponse(new Iq(type, id, to, from, data, null));
		}
Beispiel #54
0
 public VcardIq(IqType type, Jid to, Vcard vcard) : this(type, to)
 {
     Vcard = vcard;
 }
Beispiel #55
0
 public PrivateIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
Beispiel #56
0
 public VcardIq(IqType type, Jid to, Jid from) : this(type, to)
 {
     From = from;
 }
Beispiel #57
0
 public PrivacyIq(IqType type)
     : this()
 {
     Type = type;
 }
Beispiel #58
0
 public VcardIq(IqType type, Jid to, Jid from, Vcard vcard) : this(type, to, from)
 {
     Vcard = vcard;
 }
Beispiel #59
0
 public PrivacyIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     From = from;
 }
Beispiel #60
0
 public IQ(IqType type) : base(type)
 {
     Namespace = Uri.ACCEPT;
 }