| | |
| | | String hosts = "[{\"host\":\"192.168.31.77\", \"port\":12125}]"; |
| | | IMSClientBootstrap.getInstance().init(userId,token,hosts,1,this); |
| | | |
| | | WokViewModel wokViewModel = ViewModelProviders.of(this).get(WokViewModel.class); |
| | | wokViewModel.getStudents().observe(this, new Observer<List<Student>>() { |
| | | @Override |
| | | public void onChanged(List<Student> students) { |
| | | for (Student student : |
| | | students) { |
| | | Log.i(TAG, "onChanged: " + student.toString()); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | |
| | | rtkConfigViewModel = ViewModelProviders.of(this).get(RTKConfigViewModel.class); |
| | | rtkConfigViewModel.getRTKConfig().observe(this, new Observer<RTKConfig>() { |