Exemplo n.º 1
0
            public static int _eventSystem_GroupAdmin(long QQID, int subType, long sendTime, long fromGroup, long beingOperateQQ)
            {
                switch (subType)
                {
                case 1:
                    QYEvents.GroupAdminRemoved(new GroupAdminChangedArgs(fromGroup, beingOperateQQ));
                    break;

                case 2:
                    QYEvents.GroupAdminAdded(new GroupAdminChangedArgs(fromGroup, beingOperateQQ));
                    break;
                }
                return(0);
            }
Exemplo n.º 2
0
            public static int _eventPrivateMsg(long QQID, int subType, long sendTime, long fromQQ, long fromID, string fromInfo, string msg, string info, int test)
            {
                switch (subType)
                {
                case 11:
                    QYEvents.FriendMsg(new FriendMsgArgs(fromQQ, msg));
                    break;

                case 2:
                    QYEvents.GroupTmpMsg(new GroupTmpMsgArgs(fromQQ, fromID, msg));
                    break;
                }
                return(0);
            }
Exemplo n.º 3
0
            public static int _eventGroupMsg(long QQID, int subType, long sendTime, long fromGroup, long fromQQ, string fromInfo, string msg, string info, int test)
            {
                Dictionary <string, string> ifo = InfoParse(fromInfo);

                Unpack u    = new Unpack(ifo["GExtraInfo"]);
                string nick = u.NextStr;
                string gc   = u.NextStr;

                u.Skip(12);
                string title = u.NextStr;

                QYEvents.GroupMsg(new GroupMsgArgs(fromQQ, fromGroup, msg, ifo["srcmsg"], gc == "" ? nick : gc, title, ifo["MsgInfo"], AuthCode));

                return(0);
            }
Exemplo n.º 4
0
            public static int _eventRequest_AddGroup(long QQID, int subType, long sendTime, long fromGroup, long fromQQ, string source, string msg, string responseFlag)
            {
                switch (subType)
                {
                case 1:
                case 2:
                    QYEvents.RequestAddGroup(new RequestGroupArgs(fromGroup, msg, responseFlag, AuthCode, fromQQ.ToString(), subType));
                    break;

                case 3:
                    QYEvents.RequestInviteGroup(new RequestGroupArgs(fromGroup, msg, responseFlag, AuthCode, source, subType));
                    break;
                }
                return(0);
            }
Exemplo n.º 5
0
 public static int _eventRequest_AddFriend(long QQID, int subType, long sendTime, long fromQQ, string source, string msg, string responseFlag)
 {
     QYEvents.RequestAddFriend(new RequestAddFriendArgs(fromQQ, msg, responseFlag, AuthCode));
     return(0);
 }