internal static IGetSocialChatNativeBridge GetInstance()
 {
     if (instance == null)
     {
         instance = new GetSocialChatEditorMock();
     }
     return(instance);
 }
 public static IGetSocialChatNativeBridge GetInstance()
 {
     if (instance == null)
     {
         instance = new GetSocialChatIOS();
     }
     return(instance);
 }
예제 #3
0
        private GetSocialChat()
        {
            unreadRoomCountChangedListeners = new List <IUnreadRoomCountChangedListener>();
            messagesListeners     = new List <IChatMessageListener>();
            typingStatusListeners = new List <ITypingStatusListener>();

            getSocialImpl     = GetSocialFactory.InstantiateGetSocial();
            getSocialChatImpl = GetSocialChatFactory.InstantiateGetSocialChat();

            getSocialChatImpl.SetOnUnreadCountChangedListenerInternal(OnPublicRoomCountChange, OnPrivateRoomCountChange);
            getSocialChatImpl.SetMessagesListenerInternal(OnPublicRoomMessageReceived, OnPrivateRoomMessageReceived);
            getSocialChatImpl.SetTypingStatusListenerInternal(OnPublicRoomTypingStatusReceived, OnPrivateRoomTypingStatusReceived);
        }