• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IqType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IqType的典型用法代码示例。如果您正苦于以下问题:C# IqType类的具体用法?C# IqType怎么用?C# IqType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IqType类属于命名空间,在下文中一共展示了IqType类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: IQ

 public IQ(IqType type, Jid from, Jid to)
     : this()
 {
     this.Type   = type;
     this.From   = from;
     this.To     = to;
 }
开发者ID:wraithkings,项目名称:wmtalk,代码行数:7,代码来源:IQ.cs


示例2: AvatarIq

		public AvatarIq(IqType type) : this()
		{			
			this.Type = type;		
		}
开发者ID:don59,项目名称:agsXmpp,代码行数:4,代码来源:AvatarIq.cs


示例3: PrivacyIq

 public PrivacyIq(IqType type, Jid to)
     : this(type)
 {
     To = to;
 }
开发者ID:ridhouan,项目名称:teamlab.v6.5,代码行数:5,代码来源:PrivacyIq.cs


示例4: PrivateIq

 public PrivateIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
开发者ID:phiree,项目名称:dzdocs,代码行数:5,代码来源:PrivateIq.cs


示例5: IqRequestAsync

		/// <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);
		}
开发者ID:vanklompf,项目名称:Sharp.Xmpp,代码行数:28,代码来源:XmppCore.cs


示例6: VersionIq

 public VersionIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
开发者ID:wraithkings,项目名称:wmtalk,代码行数:5,代码来源:VersionIq.cs


示例7: StorageIq

 public StorageIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
开发者ID:lsalamon,项目名称:solution2010,代码行数:5,代码来源:StorageIq.cs


示例8: AuthIq

 public AuthIq(IqType type, Jid to, Jid from)
     : this(type, to)
 {
     this.From = from;
 }
开发者ID:songques,项目名称:CSSIM_Solution,代码行数:5,代码来源:AuthIq.cs


示例9: BrowseIq

 public BrowseIq(IqType type, Jid to) : this(type)
 {
     To = to;
 }
开发者ID:ridhouan,项目名称:teamlab.v6.5,代码行数:4,代码来源:BrowseIq.cs


示例10: PubSubIq

 public PubSubIq(IqType type)
     : this()
 {
     this.Type = type;
 }
开发者ID:lsalamon,项目名称:solution2010,代码行数:5,代码来源:PubSubIq.cs


示例11: IqRequest

		/// <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);
		}
开发者ID:vanklompf,项目名称:Sharp.Xmpp,代码行数:32,代码来源:XmppCore.cs


示例12: IqResponse

		/// <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));
		}
开发者ID:vanklompf,项目名称:Sharp.Xmpp,代码行数:24,代码来源:XmppCore.cs


示例13: FeatureNegIq

 public FeatureNegIq(IqType type)
     : this()
 {
     this.Type = type;
 }
开发者ID:songques,项目名称:CSSIM_Solution,代码行数:5,代码来源:FeatureNegIq.cs


示例14: BindIq

 public BindIq(IqType type)
     : this()
 {
     Type = type;
 }
开发者ID:jptoto,项目名称:argsxmpp,代码行数:5,代码来源:BindIq.cs



注:本文中的IqType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IrcChannel类代码示例发布时间:2022-05-24
下一篇:
C# IqCB类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap