public void UpdateUser() { ManualResetEvent evt = new ManualResetEvent(false); var committed = false; var message = new NSelfUpdateMessage.Builder() .AvatarUrl("http://graph.facebook.com/blah") .Fullname("Foo Bar") .Handle(Handle) .Lang("en") .Location("San Francisco") .Metadata("{}") .Timezone("Pacific Time") .Build(); client.Send(message, (bool completed) => { committed = completed; evt.Set(); }, _ => { evt.Set(); }); evt.WaitOne(1000, false); Assert.IsTrue(committed); }
private void UpdateUserInfo() { NakamaData.Singleton.ClientUserName = deviceID; Debug.Log("Updating User Info"); var message = new NSelfUpdateMessage.Builder() .Fullname(deviceID) //.Lang("en") //.Location("San Francisco") //.Timezone("Pacific Time") .Build(); client.Send(message, (bool completed) => { Debug.Log("Successfully updated user information"); }, (INError error) => { Debug.LogErrorFormat("Could not update self: '{0}'.", error.Message); }); }