Пример #1
0
 public GroupFileUploadEventArgs(DateTime sendTime, long groupNumber, long fromQQ, GroupFileInfo file)
 {
     SendTime    = sendTime;
     GroupNumber = groupNumber;
     FromQQ      = fromQQ;
     File        = file;
 }
Пример #2
0
 /// <summary>
 /// 初始化 <see cref="CQGroupUploadEventArgs"/> 类的新实例
 /// </summary>
 /// <param name="api">酷Q的接口实例</param>
 /// <param name="log">酷Q的日志实例</param>
 /// <param name="id">事件Id</param>
 /// <param name="type">事件类型</param>
 /// <param name="name">事件名称</param>
 /// <param name="function">函数名称</param>
 /// <param name="priority">默认优先级</param>
 /// <param name="subType">子类型</param>
 /// <param name="sendTime">发送时间</param>
 /// <param name="fromGroup">来源群</param>
 /// <param name="fromQQ">来源QQ</param>
 /// <param name="file">文件信息</param>
 public CQGroupUploadEventArgs(CQApi api, CQLog log, int id, int type, string name, string function, uint priority, int subType, int sendTime, long fromGroup, long fromQQ, string file)
     : base(api, log, id, type, name, function, priority)
 {
     this.SubType   = (CQGroupFileUploadType)subType;
     this.SendTime  = sendTime.ToDateTime();
     this.FromGroup = new Group(api, fromGroup);
     this.FromQQ    = new QQ(api, fromQQ);
     this.FileInfo  = new GroupFileInfo(file);
 }