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

C# QQClient类代码示例

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

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



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

示例1: ResendTrigger

 //string portName;
 public ResendTrigger(QQClient client)
 {
     this.client = client;
     timeOutQueue = new List<OutPacket>();
     //toPort = new Dictionary<OutPacket, string>();
     ThreadExcutor.RegisterIntervalObject(this, this, QQGlobal.QQ_TIMEOUT_SEND, true);
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:ResendTrigger.cs


示例2: KeepAlivePacket

 public KeepAlivePacket(QQClient client)
     : base(QQCommand.Keep_Alive, true, client)
 {
     // 刻意增加了keep alive包的发送次数,实验性质,不知能否减少网络包
     // 太多情况下的掉线可能性
     SendCount = 10;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:7,代码来源:KeepAlivePacket.cs


示例3: LoginRequestPacket

 public LoginRequestPacket(QQClient client)
     : base(QQCommand.LoginRequest, true, client)
 {
     this.Token = null;
     this.GetCode = 0;
     this.Png_Data = 0;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:7,代码来源:LoginRequestPacket.cs


示例4: SearchUserPacket

 public SearchUserPacket(QQClient client)
     : base(QQCommand.Search_User_05,true,client)
 {
     Page = "0";
     SearchType = FriendSearchType.SEARCH_ALL;
     QQStr = Nick = Email = string.Empty;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:7,代码来源:SearchUserPacket.cs


示例5: SendSMSPacket

 public SendSMSPacket(QQClient client)
     : base(QQCommand.Send_SMS_05,true,client)
 {
     MessageSequence = 0;
     ContentType = SMSContentType.NORMAL;
     SendMode = SMSSendMode.NORMAL;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:7,代码来源:SendSMSPacket.cs


示例6: OutPacket

 /// <summary>创建一个基本输出包
 /// </summary>
 /// <param name="header">The header.</param>
 /// <param name="command">包命令.</param>
 /// <param name="ack">包是否需要回复.</param>
 /// <param name="user">QQ用户对象.</param>
 public OutPacket(byte header, QQCommand command, bool ack, QQClient client)
     : base(header, QQGlobal.QQ_CLIENT_VERSION, command, GetNextSeq(), client)
 {
     this.ack = ack;
     this.resendCountDown = QQGlobal.QQ_SEND_TIME_NOACK_PACKET;
     this.SendCount = 1;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:13,代码来源:OutPacket.cs


示例7: ClusterModifyInfoPacket

 public ClusterModifyInfoPacket(QQClient client)
     : base(client)
 {
     SubCommand = ClusterCommand.MODIFY_CLUSTER_INFO;
     AuthType = AuthType.NeedAuth;
     Name = Notice = Description = string.Empty;
     Type = ClusterType.PERMANENT;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:ClusterModifyInfoPacket.cs


示例8: AddFriendAuthorizePacket

 public AddFriendAuthorizePacket(QQClient client)
     : base(QQCommand.AddFriendAuthorize,true,client)
 {
     //SubCommand = AddFriendAuthSubCmd.Request;// 0x02;
     //ReverseAdd = RevenseAdd.Allow;
     DestGroup = 0;
     Message = string.Empty;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:AddFriendAuthorizePacket.cs


示例9: ClusterCreatePacket

 public ClusterCreatePacket(QQClient client)
     : base(client)
 {
     this.SubCommand = ClusterCommand.CREATE_CLUSTER;
     this.Type = ClusterType.PERMANENT;
     this.AuthType = AuthType.NeedAuth;
     this.OldCategory = 0;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:ClusterCreatePacket.cs


示例10: ConnectionPolicy

 public ConnectionPolicy(QQClient client, string id, ProtocolFamily supportedFamily, ProtocolFamily relocateFamily)
 {
     this.ID = id;
     this.client = client;
     this.SupportedFamily = supportedFamily;
     this.RelocateFamily = relocateFamily;
     helper = new PacketHelper();
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:ConnectionPolicy.cs


示例11: AdvancedSearchUserPacket

 public AdvancedSearchUserPacket(QQClient client)
     : base(QQCommand.Advanced_Search_05,true,client)
 {
     SearchOnline = true;
     HasCam = false;
     Page = ProvinceIndex = CityIndex = 0;
     AgeIndex = GenderIndex = 0;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:8,代码来源:AdvancedSearchUserPacket.cs


示例12: ClusterSendIMExPacket

 /// <summary>
 /// Initializes a new instance of the <see cref="ClusterSendIMExPacket"/> class.
 /// </summary>
 /// <param name="user">The user.</param>
 public ClusterSendIMExPacket(QQClient client)
     : base(client)
 {
     SubCommand = ClusterCommand.SEND_IM_EX09;
     TotalFragments = 1;
     FragmentSequence = 0;
     MessageId = (ushort)Utils.Util.Random.Next();
     FontStyle = new FontStyle();
     Message = string.Empty;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:14,代码来源:ClusterSendIMExPacket.cs


示例13: LoginGetListPacket

 /// <summary>
 /// 
 /// </summary>
 /// <param name="client"></param>
 public LoginGetListPacket(QQClient client)
     : base(QQCommand.LoginGetList, true, client)
 {
     //this.Pos = 0;
     //if (!RequestCount.ContainsKey(client.QQUser.QQ))
     //{
     //    RequestCount.Add(client.QQUser.QQ, 0);
     //}
     //else
     //    RequestCount[this.Client.QQUser.QQ]++;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:15,代码来源:LoginGetListPacket.cs


示例14: Packet

 /// <summary>构造一个指定参数的包
 /// </summary>
 /// <param name="header">包头</param>
 /// <param name="source">包源</param>
 /// <param name="command">包命令 </param>
 /// <param name="sequence">包序号 </param>
 /// <param name="user">QQ用户对象</param>
 public Packet(byte header, char source, QQCommand command, char sequence, QQClient client)
 {
     //this.user = user;
     this.Client = client;
     this.Source = source;
     this.Command = command;
     this.Sequence = sequence;
     this.IsDuplicated = false;
     this.Header = header;
     this.DateTime = DateTime.Now;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:18,代码来源:Packet.cs


示例15: ReceiveIMReplyPacket

 public ReceiveIMReplyPacket(ByteBuffer buf, int length, QQClient client)
     : base(buf, length, client)
 {
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:4,代码来源:ReceiveIMReplyPacket.cs


示例16: GroupDataOpPacket

 public GroupDataOpPacket(ByteBuffer buf, int length, QQClient client)
     : base(buf, length, client)
 {
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:4,代码来源:GroupDataOpPacket.cs


示例17: RemoveSelfReplyPacket

 public RemoveSelfReplyPacket(ByteBuffer buf, int length, QQClient client)
     : base(buf, length, client)
 {
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:4,代码来源:RemoveSelfReplyPacket.cs


示例18: ClusterGetCardBatchPacket

 public ClusterGetCardBatchPacket(QQClient client)
     : base(client)
 {
     SubCommand = ClusterCommand.GET_CARD_BATCH;
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:5,代码来源:ClusterGetCardBatchPacket.cs


示例19: SignatureOpPacket

 public SignatureOpPacket(ByteBuffer buf, int length, QQClient client)
     : base(buf, length, client)
 {
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:4,代码来源:SignatureOpPacket.cs


示例20: LoginReplyPacket

 public LoginReplyPacket(ByteBuffer buf, int length, QQClient client)
     : base(buf, length, client)
 {
 }
开发者ID:leaker,项目名称:fuhj-widgets,代码行数:4,代码来源:LoginReplyPacket.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# QQControlState类代码示例发布时间:2022-05-24
下一篇:
C# QName类代码示例发布时间: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