public async Task TestFindConversation() { var client = await avRealtime.CreateClient("junwu"); var query = client.GetQuery(); var con = await query.FirstAsync(); Console.WriteLine(con.CreatedAt); await Task.FromResult(0); }
public void TestInitRealtime() { //AVClient.Initialize("3knLr8wGGKUBiXpVAwDnryNT-gzGzoHsz", "3RpBhjoPXJjVWvPnVmPyFExt"); var realtime = new AVRealtime("3knLr8wGGKUBiXpVAwDnryNT-gzGzoHsz", "3RpBhjoPXJjVWvPnVmPyFExt"); realtime.CreateClient("junwu").ContinueWith(t => { var client = t.Result; Console.WriteLine(client.State.ToString()); return Task.FromResult(0); }).Unwrap().Wait(); //var avObject = new AVObject("TestObject"); //avObject["key"] = "value"; //return avObject.SaveAsync().ContinueWith(t => //{ // Console.WriteLine(avObject.ObjectId); // return Task.FromResult(0); //}).Unwrap(); }