updatePrefs static method

void updatePrefs(
  1. User u
)

Implementation

static void updatePrefs(User u) {
  var store = GetStorage();

  store.write("tag", u.tag);
  store.write("name", u.name);
  store.write("room_id", u.roomId);
  store.write("doom_id", u.doomId);
  store.write("location", u.location);
  store.write("state", u.state);
  store.write("token", u.token);
}