예제 #1
0
 public void Handle(EventFunInput eventFunInput)
 {
     _friendAddedMahuaEvents
     .Handle(x => x.ProcessFriendsAdded(new FriendAddedMahuaEventContext
     {
         FromQq   = eventFunInput.FromNum,
         SendTime = Clock.Now,
     }));
 }
예제 #2
0
 public void Handle(EventFunInput eventFunInput)
 {
     _discussMessageReceivedMahuaEvents
     .Handle(x =>
             x.ProcessDiscussGroupMessageReceived(new DiscussMessageReceivedMahuaEventContext
     {
         SendTime    = Clock.Now,
         FromQq      = eventFunInput.EventOperator,
         FromDiscuss = eventFunInput.FromNum,
         Message     = eventFunInput.Message
     }));
 }
        public void Handle(EventFunInput eventFunInput)
        {
            _addingRequestMahuaEvents
            .Handle(x => x.ProcessAddingFriendRequest(new FriendAddingRequestContext
            {
                Message  = eventFunInput.Message,
                SendTime = Clock.Now,
                FromQq   = eventFunInput.FromNum,

                // todo AddingFriendRequestId
                // AddingFriendRequestId = eventFunInput.
            }));
        }
예제 #4
0
        public void Handle(EventFunInput eventFunInput)
        {
            _groupJoiningInvitationReceivedMahuaEvents
            .Handle(x => x.ProcessJoinGroupRequest(new GroupJoiningRequestReceivedContext
            {
                SendTime = Clock.Now,
                Message  = eventFunInput.Message,
                FromQq   = eventFunInput.EventOperator,
                ToGroup  = eventFunInput.FromNum,

                // todo GroupJoiningRequestId
                // GroupJoiningRequestId =
            }));
        }
예제 #5
0
        public void Handle(EventFunInput eventFunInput)
        {
            _groupMessageReceivedMahuaEvents
            .Handle(x => x.ProcessGroupMessage(new GroupMessageReceivedContext
            {
                Message   = eventFunInput.Message,
                SendTime  = Clock.Now,
                FromGroup = eventFunInput.FromNum,
                FromQq    = eventFunInput.EventOperator,

                // todo there is no FromAnonymous
                // FromAnonymous = e
            }));
        }
 public void Handle(EventFunInput eventFunInput)
 {
     _groupMemberChangedMahuaEvents
     .Handle(x => x.ProcessGroupMemberChanged(new GroupMemberChangedContext
     {
         SendTime  = Clock.Now,
         FromGroup = eventFunInput.FromNum,
         GroupMemberChangedType = GroupMemberChangedType.Decreased,
         JoinedOrLeftQq         = eventFunInput.EventOperator
     }));
     _groupMemberDecreasedMahuaEvents
     .Handle(x => x.ProcessGroupMemberDecreased(new GroupMemberDecreasedContext
     {
         SendTime  = Clock.Now,
         FromGroup = eventFunInput.FromNum,
         GroupMemberDecreasedReason = GroupMemberDecreasedReason.Leavebyself,
         ToQq = eventFunInput.EventOperator,
     }));
 }
예제 #7
0
 public void Handle(EventFunInput eventFunInput)
 {
     _privateMessageReceivedMahuaEvents
     .Handle(x =>
             x.ProcessPrivateMessage(new PrivateMessageReceivedContext
     {
         FromQq   = eventFunInput.EventOperator,
         SendTime = Clock.Now,
         Message  = eventFunInput.Message,
         PrivateMessageFromType = PrivateMessageFromType.Friend
     }));
     _privateMessageFromFriendReceivedMahuaEvents
     .Handle(x => x.ProcessFriendMessage(
                 new PrivateMessageFromFriendReceivedContext
     {
         Message  = eventFunInput.Message,
         FromQq   = eventFunInput.EventOperator,
         SendTime = Clock.Now,
     }));
 }
예제 #8
0
 public void Handle(EventFunInput eventFunInput)
 {
     _groupMemberChangedMahuaEvents
     .Handle(x => x.ProcessGroupMemberChanged(new GroupMemberChangedContext
     {
         SendTime  = Clock.Now,
         FromGroup = eventFunInput.FromNum,
         GroupMemberChangedType = GroupMemberChangedType.Increased,
         JoinedOrLeftQq         = eventFunInput.Triggee
     }));
     _groupMemberIncreasedMahuaEvents
     .Handle(x => x.ProcessGroupMemberIncreased(new GroupMemberIncreasedContext
     {
         SendTime  = Clock.Now,
         FromGroup = eventFunInput.FromNum,
         GroupMemberIncreasedReason = GroupMemberIncreasedReason.AdminAllowed,
         InvitatorOrAdmin           = eventFunInput.EventOperator,
         JoinedQq = eventFunInput.Triggee
     }));
 }
 public void Handle(EventFunInput eventFunInput)
 {
     _groupAdminChangedMahuaEvents
     .Handle(x =>
             x.ProcessGroupAdminChange(new GroupAdminChangedContext
     {
         FromGroup            = eventFunInput.FromNum,
         ToQq                 = eventFunInput.EventOperator,
         GroupAdminChangeType = GroupAdminChangeType.Disabled,
         SendTime             = Clock.Now,
     }));
     _groupAdminDisabledMahuaEvents
     .Handle(x =>
             x.ProcessGroupAdminDisabled(new GroupAdminDisabledContext
     {
         FromGroup = eventFunInput.FromNum,
         ToQq      = eventFunInput.EventOperator,
         SendTime  = Clock.Now,
     }));
 }
 public void Handle(EventFunInput eventFunInput)
 {
     _privateMessageReceivedMahuaEvents
     .Handle(x =>
             x.ProcessPrivateMessage(new PrivateMessageReceivedContext
     {
         FromQq   = eventFunInput.EventOperator,
         SendTime = Clock.Now,
         Message  = eventFunInput.Message,
         PrivateMessageFromType = PrivateMessageFromType.Group
     }));
     _privateMessageFromDiscussReceivedMahuaEvents
     .Handle(x => x.ProcessDiscussGroupMessage(
                 new PrivateMessageFromDiscussReceivedContext
     {
         Message     = eventFunInput.Message,
         FromQq      = eventFunInput.EventOperator,
         SendTime    = Clock.Now,
         FromDiscuss = eventFunInput.FromNum,
     }));
 }
예제 #11
0
 public void Handle(EventFunInput eventFunInput)
 {
     // todo there is no mahua event
 }
 public void Handle(EventFunInput eventFunInput)
 {
     _pluginEnabledMahuaEvents
     .Handle(x => x.Enabled(new PluginEnabledContext {
     }));
 }
 public void Handle(EventFunInput eventFunInput)
 {
     // todo not supported
 }
예제 #14
0
 public void Handle(EventFunInput eventFunInput)
 {
     _systemInitEvents.Handle(x => x.Handle());
 }
예제 #15
0
 public void Handle(EventFunInput eventFunInput)
 {
     _pluginDisabledMahuaEvents
     .Handle(x => x.Disable(new PluginDisabledContext()));
 }