Esempio n. 1
0
        void IChatCallbacks.ChatChannelMembershipCallback(TTV_ChatEvent evt, ChatChannelInfo channelInfo)
        {
            switch (evt)
            {
            case TTV_ChatEvent.TTV_CHAT_JOINED_CHANNEL:
            {
                m_ChatState = ChatState.Connected;
                FireConnected();
                break;
            }

            case TTV_ChatEvent.TTV_CHAT_LEFT_CHANNEL:
            {
                m_ChatState = ChatState.Disconnected;
                break;
            }

            default:
            {
                break;
            }
            }
        }
Esempio n. 2
0
 void IChatCallbacks.ChatChannelMembershipCallback(TTV_ChatEvent evt, ChatChannelInfo channelInfo)
 {
     switch (evt)
     {
         case TTV_ChatEvent.TTV_CHAT_JOINED_CHANNEL:
         {
             m_ChatState = ChatState.Connected;
             FireConnected();
             break;
         }
         case TTV_ChatEvent.TTV_CHAT_LEFT_CHANNEL:
         {
             m_ChatState = ChatState.Disconnected;
             break;
         }
         default:
         {
             break;
         }
     }
 }