public void UpdateAccountInPlace() { try { var accountJson = _ac.Get(FormatRoute()); _account = JsonUtility.MaybeDeserialize <Types.Account>(accountJson); var statusesJson = _ac.Get(FormatRoute("statuses")); _statuses = JsonUtility.MaybeDeserialize <List <Types.Status> >(statusesJson); var followersJson = _ac.Get(FormatRoute("followers")); _followers = JsonUtility.MaybeDeserialize <List <Types.Account> >(followersJson); var followingJson = _ac.Get(FormatRoute("following")); _following = JsonUtility.MaybeDeserialize <List <Types.Account> >(followingJson); } catch (Exception e) { ErrorDispatcher.ShowError(e, "Fetching Account Info"); } }
public AccountForm(ApiClient client, Types.Account account) : this(client, account.Id) { }