コード例 #1
0
  private void init() {
    EventBus.getDefault().register(this);

    mController =
        (AppreciatetvController)
            ControllerManager.newController(getActivity(), AppreciatetvController.class);
    Builder builder = new Builder();
    Request request = builder.obtain(Request.Action.GET_APPRECIATE_TV).getResult();
    mController.handle(request);
  }
コード例 #2
0
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    EventBus.getDefault().register(this);

    mController =
        (TraininfomationController)
            ControllerManager.newController(getActivity(), TraininfomationController.class);
    Builder builder = new Builder();
    Request request = builder.obtain(Request.Action.GET_SCHEDULE).getResult();
    mController.handle(request);
  }