Esempio n. 1
0
        public static string GetInfo()
        {
            var infoCommandResult = PluginInstanceManager.GetInstance()
                                    .SendCommand <InfoCommandResult>(new InfoCommand());

            return(infoCommandResult.Info);
        }
Esempio n. 2
0
        public static int EventFun(string receiverQq, int eventType, int eventAdditionType, string fromNum,
                                   string eventOperator,
                                   string triggee,
                                   string message, string rawMessage)
        {
            var eventFunCommandResult = PluginInstanceManager.GetInstance().SendCommand <EventFunCommandResult>(
                new EventFunCommand
            {
                ReceiverQq        = long.Parse(receiverQq),
                Message           = message,
                EventAdditionType = eventAdditionType,
                EventOperator     = eventOperator,
                EventType         = eventType,
                FromNum           = long.Parse(fromNum),
                RawMessage        = rawMessage,
                Triggee           = triggee,
            });

            return(eventFunCommandResult.ResultCode);
        }
Esempio n. 3
0
 public static int End()
 {
     PluginInstanceManager.GetInstance().SendCommand(new EndCommand());
     return(0);
 }
Esempio n. 4
0
 public static void About()
 {
     PluginInstanceManager.GetInstance().SendCommand(new AboutCommand());
 }