Esempio n. 1
0
        /**
         * {@inheritDoc}
         *
         * 通知事件
         */

        public void fireNotify(QQNotifyEvent evt)
        {
            if (notifyListener != null)
            {
                try {
                    notifyListener.onNotifyEvent(evt);
                } catch (Exception e) {
                }
            }
            // 重新登录成功,重新poll
            if (evt.getType() == QQNotifyEvent.Type.RELOGIN_SUCCESS)
            {
                beginPollMsg();
            }
        }
Esempio n. 2
0
        /** {@inheritDoc} */
        public void onNotifyEvent(QQNotifyEvent evt)
        {
            MethodInfo m = methodDictionary[evt.getType()];

            if (m != null)
            {
                try {
                    m.Invoke(proxyObject, new Object[] { evt });
                } catch (Exception e) {
                }
            }
            else
            {
            }
        }