예제 #1
0
        public MucHandler(Account account, Room room)
            : base(account)
        {
            m_Room = room;
            m_GridModel = new MucAvatarGridModel(account, room);

            m_Room.OnRoomMessage      += HandleOnRoomMessage;
            m_Room.OnSelfMessage      += HandleOnSelfMessage;
            m_Room.OnJoin             += HandleOnJoin;
            m_Room.OnLeave            += HandleOnLeave;
            m_Room.OnParticipantJoin  += HandleOnParticipantJoin;
            m_Room.OnParticipantLeave += HandleOnParticipantLeave;
            m_Room.OnSubjectChange    += HandleOnSubjectChange;
            m_Room.OnPresenceError    += HandleOnPresenceError;
            m_Room.OnRoomConfig       += HandleOnRoomConfig;
            m_Room.OnAdminMessage     += HandleOnAdminMessage;
            m_Room.OnParticipantPresenceChange += HandleOnPresenceChange;
            m_Room.OnPresenceChange  += HandleOnPresenceChange;
            account.Client.OnIQ += HandleOnIQ;
            account.ConnectionStateChanged +=HandleConnectionStateChanged;
        }
예제 #2
0
        public MucHandler(Account account, Room room)
            : base(account)
        {
            m_Room      = room;
            m_GridModel = new MucAvatarGridModel(account, room);

            m_Room.OnRoomMessage               += HandleOnRoomMessage;
            m_Room.OnSelfMessage               += HandleOnSelfMessage;
            m_Room.OnJoin                      += HandleOnJoin;
            m_Room.OnLeave                     += HandleOnLeave;
            m_Room.OnParticipantJoin           += HandleOnParticipantJoin;
            m_Room.OnParticipantLeave          += HandleOnParticipantLeave;
            m_Room.OnSubjectChange             += HandleOnSubjectChange;
            m_Room.OnPresenceError             += HandleOnPresenceError;
            m_Room.OnRoomConfig                += HandleOnRoomConfig;
            m_Room.OnAdminMessage              += HandleOnAdminMessage;
            m_Room.OnParticipantPresenceChange += HandleOnPresenceChange;
            m_Room.OnPresenceChange            += HandleOnPresenceChange;
            account.Client.OnIQ                += HandleOnIQ;
            account.ConnectionStateChanged     += HandleConnectionStateChanged;
        }