### Question:
TopicService extends BaseService<List<Topic>> { public void getTopic(Tab type, int page){ switch (type.getType()){ case HOT: getHot(); break; case LATEST: getLatest(); break; case CUSTOM: break; case NODE: getTopicsByNode(type.getTitle(), page); break; case TAB: getTopicByTab(type.getTitle()); break; case FOLLOWING: break; default: break; } } TopicService(IResponsibleView v, ResponseListener<List<Topic>> topicListener); void getTopic(Tab type, int page); static void postTopic(IResponsibleView iResponsibleView,
                          String title,
                          String content,
                          String node,
                          ResponseListener<Topic> listener); static void getTopicByNode(IResponsibleView view,
                                      String node,
                                      int page,
                                      ResponseListener<List<Topic>> listener); static void getTopicAndReply(IResponsibleView responsibleView,
                                        int topicId,
                                        int page,
                                        ResponseListener<Topic> listener); static void postReply(IResponsibleView responsibleView,
                                 Topic topic,
                                 String content,
                                 ResponseListener<String> responseListener); static void getReply(IResponsibleView responsibleView,
                                int topicId,
                                int page,
                                ResponseListener<List<Reply>> listener); void getReplyFromApi(Topic topic, int page);  }### Answer:
@Test public void test(){ TabEnum tabEnum = TabEnum.NODE; tabEnum.setTitle("sandbox"); new TopicService(iResponsibleView, new ResponseListener<List<Topic>>() { @Override public void onComplete(List<Topic> result) { System.out.println(result); } @Override public boolean onFailed(String msg) { System.err.println(msg); return true; } }).getTopic(new Tab(TabEnum.NODE,"v2ex","v2ex"),1); }