Exemple #1
0
 public SetGroupBanCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long groupId, long qqId, long time)
     : base(simulator, app, isAuth)
 {
     this.GroupId      = groupId;
     this.QqId         = qqId;
     this.DurationTime = TimeSpan.FromSeconds(time);
 }
 public GetGroupMemberInfoV2Command(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long groupId, long qqId, bool isCache)
     : base(simulator, app, isAuth)
 {
     this.GroupId = groupId;
     this.QqId    = qqId;
     this.IsCache = isCache;
 }
Exemple #3
0
 public SetGroupAnonymousBanCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long groupId, IntPtr anonymous, long banTime)
     : base(simulator, app, isAuth)
 {
     this.GroupId = groupId;
     //this.Anonymous =
     this.DurationTime = TimeSpan.FromSeconds(banTime);
 }
 public SetGroupKickCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long groupId, long qqId, bool refuses)
     : base(simulator, app, isAuth)
 {
     this.GroupId = groupId;
     this.QqId    = qqId;
     this.Refuses = refuses;
 }
Exemple #5
0
 public SetGroupAdminCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long groupId, long qqId, bool isSet)
     : base(simulator, app, isAuth)
 {
     this.GroupId = groupId;
     this.QqId    = qqId;
     this.IsSet   = isSet;
 }
Exemple #6
0
 public AddLogCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, int level, string type, string contents)
     : base(simulator, app, isAuth)
 {
     this.Level    = level;
     this.Type     = type;
     this.Contents = contents;
 }
Exemple #7
0
 public SetGroupCardCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long groupId, long qqId, string newCard)
     : base(simulator, app, isAuth)
 {
     this.GroupId = groupId;
     this.QqId    = qqId;
     this.NewCard = newCard;
 }
 public SetFriendAddRequestCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, string identifying, int requestType, string appendMsg)
     : base(simulator, app, isAuth)
 {
     this.Identifying = identifying;
     this.RequestType = requestType;
     this.AppendMsg   = appendMsg;
 }
 public SetGroupSpecialTitleCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long groupId, long qqId, string title, long durationTime)
     : base(simulator, app, isAuth)
 {
     this.GroupId      = groupId;
     this.QqId         = qqId;
     this.Title        = title;
     this.DurationTime = TimeSpan.FromSeconds(durationTime);
 }
 public SendPrivateMsgCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long qqId, string msg)
     : base(simulator, app, isAuth)
 {
     this.FromQQ  = qqId;
     this.Message = msg;
 }
 public GetImageCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, string file)
     : base(simulator, app, isAuth)
 {
     this.File = file;
 }
Exemple #12
0
 /// <summary>
 /// 初始化 <see cref="AbstractCommand"/> 类的新实例
 /// </summary>
 /// <param name="app">相关联的应用 <see cref="CQPSimulatorApp"/></param>
 /// <param name="isAuth">指示当前命令是否得到授权</param>
 public AbstractCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth)
 {
     this.Simulator = simulator ?? throw new ArgumentNullException(nameof(simulator));
     this.App       = app ?? throw new ArgumentNullException(nameof(app));
     this.IsAuth    = isAuth;
 }
Exemple #13
0
 public GetAppDirectoryCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth)
     : base(simulator, app, isAuth)
 {
 }
 public GetRecordV2Command(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, string file, string format)
     : base(simulator, app, isAuth)
 {
     this.File   = file;
     this.Format = format;
 }
 public GetStrangerInfoCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long qqId, bool notCache)
     : base(simulator, app, isAuth)
 {
     this.QqId    = QqId;
     this.NoCache = notCache;
 }
Exemple #16
0
 public CanSendImageCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth)
     : base(simulator, app, isAuth)
 {
 }
 public GetGroupListCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth)
     : base(simulator, app, isAuth)
 {
 }
 public GetCookiesV2Command(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, string domain)
     : base(simulator, app, isAuth)
 {
     this.Domain = domain;
 }
 public SetGroupLeaveCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long groupId, bool isDisband)
     : base(simulator, app, isAuth)
 {
     this.GroupId   = groupId;
     this.IsDisband = isDisband;
 }
 public SetFatalCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, string errorMsg)
     : base(simulator, app, isAuth)
 {
     this.ErrorMsg = errorMsg;
 }
 public SendLinkV2Command(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long qqId, int count)
     : base(simulator, app, isAuth)
 {
     FromQQ = qqId;
     Count  = count;
 }
Exemple #22
0
 public GetLoginQQCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth)
     : base(simulator, app, isAuth)
 {
 }
Exemple #23
0
 public SendDiscussMsgCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long discussId, string msg)
     : base(simulator, app, isAuth)
 {
     FromDiscuss = discussId;
     Message     = msg ?? throw new ArgumentNullException(nameof(msg));
 }
Exemple #24
0
 /// <summary>
 /// 初始化 <see cref="CommandRouteInvoker"/> 类的新实例
 /// </summary>
 /// <param name="simulator">相关联的 <see cref="CQPSimulator"/></param>
 /// <param name="app">相关联的 <see cref="CQPSimulatorApp"/></param>
 /// <param name="isAuth">表示验证授权是否通过</param>
 public CommandRouteInvoker(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth)
 {
     Simulator   = simulator;
     this.App    = app;
     this.IsAuth = isAuth;
 }
 public GetCsrfTokenCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth)
     : base(simulator, app, isAuth)
 {
 }
Exemple #26
0
 /// <summary>
 /// 初始化 <see cref="GroupMessageExpression"/> 类的新实例
 /// </summary>
 /// <param name="simulator">任务表达式关联的模拟器</param>
 public GroupMessageExpression(CQPSimulator simulator)
     : base(simulator)
 {
 }
Exemple #27
0
 public SetDiscussLeaveCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long discussId)
     : base(simulator, app, isAuth)
 {
     this.DiscussId = discussId;
 }
Exemple #28
0
 public SendGroupMsgCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long groupId, string msg)
     : base(simulator, app, isAuth)
 {
     FromGroup = groupId;
     Message   = msg;
 }
 public DeleteMsgCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long msgId)
     : base(simulator, app, isAuth)
 {
     MsgId = msgId;
 }
 public GetGroupMemberListCommand(CQPSimulator simulator, CQPSimulatorApp app, bool isAuth, long groupId)
     : base(simulator, app, isAuth)
 {
     this.GroupId = groupId;
 }