Example #1
0
        public static void LoginWithAnonymous(long roomId, AnonymousInfo anonymityInfo, LoginData loginData = null)
        {
            string loginJson = string.Empty;

            if (loginData != null)
            {
                loginJson = loginData.Serialize();
            }

            if (anonymityInfo == null)
            {
                return;
            }

            string anonymity_info = anonymityInfo.Serialize();

            ChatRoomNativeMethods.nim_chatroom_enter_with_anoymity(roomId, anonymity_info, loginJson, null);
        }