private void LoadMyInfo(object obj) { DeleChangeText dele = new DeleChangeText(StateTextChange); Application.Current.Dispatcher.BeginInvoke(dele, new object[] { "정보 불러오는 중" }); PacketVerifyCredentials parameter = new PacketVerifyCredentials(); string json = WebInstence.SyncRequest(parameter); User user = JsonConvert.DeserializeObject <User>(json); if (user == null) { Application.Current.Dispatcher.BeginInvoke(dele, new object[] { "정보 불러오기 실패" }); return; } countFav = user.favourites_count; Application.Current.Dispatcher.BeginInvoke(dele, new object[] { "정보 불러오기 완료!" }); NextState(); }
public void GetMyInfo() { PacketVerifyCredentials packet = new PacketVerifyCredentials(); RequestPacket <User>(packet, responseInstence.MyInfo); }