sx513240563
Dictionary dic = new Dictionary(); dic.Add("message", "CALL_ACCEPTED"); dic.Add("type", "0"); dic.Add("sendUser", "abc123"); AVIMTextMessage msg = new AVIMTextMessage(); msg.MergeCustomAttributes(dic); await mConversation.SendMessageAsync(msg); 这是发送信息的code,请问接收信息那边怎么能收到 Dictionary呢?然后再得出"message" 十分…
对了 , 是在unity(c#)上
十分感谢您的回复!!虽然我也找到这个继承类了
您好 非常感谢您回答了我的问题 另外想请问我登录leanCloud后,怎么在我还没有创建会话的情况下,接收别人给我发来的信息(对方创建会话)?
这样子。。非常感谢!此外我发现 c1.OnMessageReceived += (sender, e) => { if (e.Message is AVIMTextMessage) { var textMsg = e.Message as AVIMTextMessage; var world = textMsg["hello"] as string; ------------------------------------------------- var aaa = textMsg["abc"] as string; ----------------------------------…
或者是var bbb = textMsg["efg"] as string; 然而efg这个key不存在的话该怎么解决呢?