private static int EventFriendAdd(int subType, int sendTime, long fromQQ)
 {
     RobbotManager.Resolve <IFriendAddEvent>()?.Handle(new FriendAddContext()
     {
         subType  = (Enum.IsDefined(typeof(FriendAddType), subType) ? (FriendAddType)subType : FriendAddType.Unknow),
         sendTime = sendTime,
         fromQQ   = fromQQ
     });
     return(0);
 }
 private static int EventSystemGroupAdmin(int subType, int sendTime, long fromGroup, long beingOperateQQ)
 {
     RobbotManager.Resolve <IGroupAdminEvent>()?.Handle(new GroupAdminContext()
     {
         subType        = (Enum.IsDefined(typeof(GroupAdminType), subType) ? (GroupAdminType)subType : GroupAdminType.Unknown),
         sendTime       = sendTime,
         fromGroup      = fromGroup,
         beingOperateQQ = beingOperateQQ
     });
     return(0);
 }
 private static int EventRequestAddFriend(int subType, int sendTime, long fromQQ, string msg, string responseFlag)
 {
     RobbotManager.Resolve <IRequestAddFriendEvent>()?.Handle(new RequestAddFriendContext()
     {
         subType      = (Enum.IsDefined(typeof(RequestFriendAddType), subType) ? (RequestFriendAddType)subType : RequestFriendAddType.Unknow),
         sendTime     = sendTime,
         fromQQ       = fromQQ,
         msg          = msg,
         responseFlag = responseFlag
     });
     return(0);
 }
 private static int EventGroupUpload(int subType, int sendTime, long fromGroup, long fromQQ, string file)
 {
     RobbotManager.Resolve <IGroupUploadEvent>()?.Handle(new GroupUploadContext()
     {
         subType   = subType,
         sendTime  = sendTime,
         fromGroup = fromGroup,
         fromQQ    = fromQQ,
         file      = file
     });
     return(0);
 }
 private static int EventPrivateMsg(int subType, int msgId, long fromQQ, string msg, int font)
 {
     RobbotManager.Resolve <IPrivateMsgEvent>()?.Handle(new PrivateMsgContext()
     {
         subType = (Enum.IsDefined(typeof(PrivateMessageType), subType) ? (PrivateMessageType)subType : PrivateMessageType.Unknown),
         msgId   = msgId,
         fromQQ  = fromQQ,
         msg     = msg,
         font    = font
     });
     return(0);
 }
 private static int EventGroupMsg(int subType, int msgId, long fromGroup, long fromQQ, string fromAnonymous, string msg, int font)
 {
     RobbotManager.Resolve <IGroupMsgEvent>()?.Handle(new GroupMsgContext()
     {
         subType       = (Enum.IsDefined(typeof(GroupMessageType), subType) ? (GroupMessageType)subType : GroupMessageType.Unknown),
         msgId         = msgId,
         fromGroup     = fromGroup,
         fromQQ        = fromQQ,
         fromAnonymous = fromAnonymous,
         msg           = msg,
         font          = font
     });
     return(0);
 }
 private static int EventDisable()
 {
     RobbotManager.Resolve <IDisableEvent>()?.Handle(new DisableContext());
     return(0);
 }
 private static int EventExit()
 {
     RobbotManager.Resolve <IExitEvent>()?.Handle(new ExitContext());
     return(0);
 }
 private static int EventStartUp()
 {
     RobbotManager.Resolve <IStartupEvent>()?.Handle(new StartupContext());
     return(0);
 }
 private static int Initialize(int authCode)
 {
     RobbotManager.AuthCode = authCode;
     RobbotManager.Resolve <IInitializeEvent>()?.Handle(new InitializeContext());
     return(0);
 }
 private static int EventOpenConsole()
 {
     RobbotManager.Resolve <IOpenConsoleEvent>()?.Handle(new OpenConsoleContext());
     return(0);
 }