public static string Information()
        {
            var informationCommandResult = PluginInstanceManager.GetInstance()
                                           .SendCommand <InformationCommand, InformationCommandResult>(new InformationCommand());

            return(informationCommandResult.Info);
        }
 public static int _TestMenu2()
 {
     PluginInstanceManager.GetInstance().SendCommand(new MenuCommand
     {
         MenuId = nameof(_TestMenu2),
     });
     return(0);
 }
 public static string Event_BecomeFriends(string fromqq)
 {
     PluginInstanceManager.GetInstance().SendCommand(new BecomeFriendsCommand
     {
         Fromqq = fromqq
     });
     return(Continue);
 }
 public static string Event_AddFrinend(string fromqq, string reason)
 {
     PluginInstanceManager.GetInstance().SendCommand(new AddFrinendCommand
     {
         Fromqq = fromqq,
         Reason = reason
     });
     return(Continue);
 }
 public static string Event_AdminChange(string type, string fromgroup, string fromqq)
 {
     PluginInstanceManager.GetInstance().SendCommand(new AdminChangeCommand
     {
         Type      = type,
         Fromqq    = fromqq,
         Fromgroup = fromgroup
     });
     return(Continue);
 }
 public static string Event_GroupMemberDecrease(string type, string fromgroup, string fromqq,
                                                string operatorQq)
 {
     PluginInstanceManager.GetInstance().SendCommand(new GroupMemberDecreaseCommand
     {
         Type       = type,
         Fromqq     = fromqq,
         Fromgroup  = fromgroup,
         OperatorQq = operatorQq
     });
     return(Continue);
 }
 public static string Event_AddGroup(string type, string fromgroup, string fromqq,
                                     string invatorQq, string moreMsg, string seq)
 {
     PluginInstanceManager.GetInstance().SendCommand(new AddGroupCommand
     {
         Type      = type,
         Fromqq    = fromqq,
         Fromgroup = fromgroup,
         InvatorQq = invatorQq,
         MoreMsg   = moreMsg,
         Seq       = seq
     });
     return(Continue);
 }
 public static string Event_GetQQWalletData(string type, string fromgroup, string fromqq, string money,
                                            string friendRemark, string orderNo)
 {
     PluginInstanceManager.GetInstance().SendCommand(new GetQqWalletDataCommand
     {
         Type         = type,
         Fromqq       = fromqq,
         Fromgroup    = fromgroup,
         FriendRemark = friendRemark,
         Money        = money,
         OrderNo      = orderNo
     });
     return(Continue);
 }
        public static string Event_GetNewMsg(string type, string fromgroup, string fromqq, string message)
        {
            FromMessageType t;

            switch (type)
            {
            case "1":
                t = FromMessageType.好友消息;
                break;

            case "2":
                t = FromMessageType.群消息;
                break;

            case "3":
                t = FromMessageType.群临时消息;
                break;

            case "4":
                t = FromMessageType.讨论组消息;
                break;

            case "5":
                t = FromMessageType.讨论组临时消息;
                break;

            default:
                t = FromMessageType.Unknown;
                break;
            }
            PluginInstanceManager.GetInstance().SendCommand(new GetNewMsgCommand
            {
                Message   = message,
                Type      = t,
                Fromgroup = fromgroup,
                Fromqq    = fromqq,
            });
            return(Continue);
        }
 public static int Event_pluginStop()
 {
     PluginInstanceManager.GetInstance().SendCommand(new PluginStopCommand());
     return(0);
 }
 public static int Event_Initialization()
 {
     PluginInstanceManager.GetInstance().SendCommand(new InitializationCommand());
     return(0);
 }
 public static string Event_UpdataCookies()
 {
     PluginInstanceManager.GetInstance().SendCommand(new UpdataCookiesCommand());
     return(Continue);
 }