public void Conversation_Join() { AVClient.Initialize("uay57kigwe0b6f5n0e1d4z4xhydsml3dor24bzwvzr57wdap", "kfgz7jjfsk55r5a8a3y4ttd3je1ko11bkibcikonk32oozww"); var client = new AVIMClient("John"); client.UseLeanEngineSignatureFactory(); client.ConnectAsync().ContinueWith(_ => { AVIMConversation consersation = AVIMConversation.CreateWithoutData("575e88521532bc0060995d32", client); consersation.JoinAsync().Wait(); }).Wait(); }
public void Create_Conversation() { AVClient.Initialize("uay57kigwe0b6f5n0e1d4z4xhydsml3dor24bzwvzr57wdap", "kfgz7jjfsk55r5a8a3y4ttd3je1ko11bkibcikonk32oozww"); var client = new AVIMClient("Tom"); client.UseLeanEngineSignatureFactory(); AVIMConversation convseation = new AVIMConversation() { Name = "xman", IsTransient = false, }; convseation.MemberIds = new List <string>(); convseation.MemberIds.Add("Jerry"); client.ConnectAsync().ContinueWith(_ => { client.CreateConversationAsync(convseation, true).Wait(); }).Wait(); }