Ejemplo n.º 1
0
 public IQ(IqType type, Jid from, Jid to)
     : this()
 {
     this.Type   = type;
     this.From   = from;
     this.To     = to;
 }
Ejemplo n.º 2
0
 public IQ(IqType type, Jid from, Jid to) : base(type, from, to)
 {
     Namespace = Uri.ACCEPT;
 }
Ejemplo n.º 3
0
 public PrivateIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
Ejemplo n.º 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);
		}
Ejemplo n.º 5
0
 public VersionIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Ejemplo n.º 6
0
 public BindIq(IqType type, string resource)
     : this(type)
 {
     m_Bind.Resource = resource;
 }
Ejemplo n.º 7
0
 public PubSubIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 11
0
 public RpcIq(IqType type, Jid to, Jid from) : this(type, to)
 {
     From = from;
 }
Ejemplo n.º 12
0
 public RpcIq(IqType type, Jid to) : this(type)
 {
     To = to;
 }
Ejemplo n.º 13
0
 public RpcIq(IqType type) : this()
 {
     Type = type;
 }
Ejemplo n.º 14
0
 public SessionIq(IqType type, Jid to) : this()
 {
     this.Type = type;
     this.To   = to;
 }
Ejemplo n.º 15
0
 public SessionIq(IqType type) : this()
 {
     this.Type = type;
 }
Ejemplo n.º 16
0
		public AvatarIq(IqType type, Jid to) : this(type)
		{
			this.To = to;
		}
Ejemplo n.º 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;
 }
Ejemplo n.º 19
0
 public StorageIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
Ejemplo n.º 20
0
 public AuthIq(IqType type) : this()
 {
     this.Type = type;
 }
Ejemplo n.º 21
0
 public FeatureNegIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Ejemplo n.º 22
0
 public AuthIq(IqType type, Jid to) : this(type)
 {
     this.To = to;
 }
Ejemplo n.º 23
0
 public BrowseIq(IqType type, Jid to) : this(type)
 {
     To = to;
 }
Ejemplo n.º 24
0
 public BindIq(IqType type) : this()
 {
     this.Type = type;
 }
Ejemplo n.º 25
0
 public VersionIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
Ejemplo n.º 26
0
 public BindIq(IqType type, Jid to) : this()
 {
     this.Type = type;
     this.To   = to;
 }
Ejemplo n.º 27
0
 public PrivateIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Ejemplo n.º 28
0
 public BindIq(IqType type, Jid to, string resource) : this(type, to)
 {
     m_Bind.Resource = resource;
 }
Ejemplo n.º 29
0
 public PrivacyIq(IqType type, Jid to)
     : this(type)
 {
     To = to;
 }
 public FeatureNegIq(IqType type) : this()
 {
     Type = type;
 }
Ejemplo n.º 31
0
		public AvatarIq(IqType type) : this()
		{			
			this.Type = type;		
		}
Ejemplo n.º 32
0
 public LastIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Ejemplo n.º 33
0
 public AuthIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Ejemplo n.º 34
0
 public LastIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
Ejemplo n.º 35
0
 public AuthIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
Ejemplo n.º 36
0
 public OobIq(IqType type) : this()
 {
     this.Type = type;
 }
Ejemplo n.º 37
0
 public StorageIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
Ejemplo n.º 38
0
 public OobIq(IqType type, Jid to) : this(type)
 {
     this.To = to;
 }
Ejemplo n.º 39
0
 public PubSubIq(IqType type)
     : this()
 {
     this.Type = type;
 }
Ejemplo n.º 40
0
 public OobIq(IqType type, Jid to, Jid from) : this(type, to)
 {
     this.From = from;
 }
Ejemplo n.º 41
0
 public PubSubIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
Ejemplo n.º 42
0
 public PrivacyIq(IqType type)
     : this()
 {
     Type = type;
 }
Ejemplo n.º 43
0
 public BindIq(IqType type)
     : this()
 {
     Type = type;
 }
Ejemplo n.º 44
0
 public PrivacyIq(IqType type, Jid to)
     : this(type)
 {
     To = to;
 }
Ejemplo n.º 45
0
 public BrowseIq(IqType type) : this()
 {
     Type = type;
 }
Ejemplo n.º 46
0
 public PrivacyIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     From = from;
 }
Ejemplo n.º 47
0
 public BrowseIq(IqType type, Jid to, Jid from) : this(type, to)
 {
     From = from;
 }
Ejemplo n.º 48
0
 public VcardIq(IqType type) : this()
 {
     Type = type;
 }
Ejemplo n.º 49
0
 public VersionIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
Ejemplo n.º 50
0
 public VcardIq(IqType type, Vcard vcard) : this(type)
 {
     Vcard = vcard;
 }
Ejemplo n.º 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);
		}
Ejemplo n.º 52
0
 public VcardIq(IqType type, Jid to) : this(type)
 {
     To = to;
 }
Ejemplo n.º 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));
		}
Ejemplo n.º 54
0
 public VcardIq(IqType type, Jid to, Vcard vcard) : this(type, to)
 {
     Vcard = vcard;
 }
Ejemplo n.º 55
0
 public PrivateIq(IqType type, Jid to)
     : this(type)
 {
     this.To = to;
 }
Ejemplo n.º 56
0
 public VcardIq(IqType type, Jid to, Jid from) : this(type, to)
 {
     From = from;
 }
Ejemplo n.º 57
0
 public PrivacyIq(IqType type)
     : this()
 {
     Type = type;
 }
Ejemplo n.º 58
0
 public VcardIq(IqType type, Jid to, Jid from, Vcard vcard) : this(type, to, from)
 {
     Vcard = vcard;
 }
Ejemplo n.º 59
0
 public PrivacyIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     From = from;
 }
Ejemplo n.º 60
0
 public IQ(IqType type) : base(type)
 {
     Namespace = Uri.ACCEPT;
 }