@Test(dataProvider = "getKfAccountAndOpenid") public void testKfSessionCreate(String kfAccount, String openid) throws WxErrorException { boolean result = this.wxService.getKefuService().kfSessionCreate(openid, kfAccount); assertThat(result).isTrue(); }
@Override public boolean kfSessionCreate(String openid, String kfAccount) throws WxErrorException { WxMpKfSessionRequest request = new WxMpKfSessionRequest(kfAccount, openid); String responseContent = this.wxMpService.post(KFSESSION_CREATE, request.toJson()); return responseContent != null; }
WxMpKefuServiceImpl implements WxMpKefuService { @Override public boolean kfSessionCreate(String openid, String kfAccount) throws WxErrorException { WxMpKfSessionRequest request = new WxMpKfSessionRequest(kfAccount, openid); String responseContent = this.wxMpService.post(KFSESSION_CREATE, request.toJson()); return responseContent != null; } }
WxMpKefuServiceImpl implements WxMpKefuService { @Override public boolean kfSessionCreate(String openid, String kfAccount) throws WxErrorException { WxMpKfSessionRequest request = new WxMpKfSessionRequest(kfAccount, openid); String responseContent = this.wxMpService.post(KFSESSION_CREATE, request.toJson()); return responseContent != null; } WxMpKefuServiceImpl(WxMpService wxMpService); }
WxMpKefuServiceImpl implements WxMpKefuService { @Override public boolean kfSessionCreate(String openid, String kfAccount) throws WxErrorException { WxMpKfSessionRequest request = new WxMpKfSessionRequest(kfAccount, openid); String responseContent = this.wxMpService.post(KFSESSION_CREATE, request.toJson()); return responseContent != null; } WxMpKefuServiceImpl(WxMpService wxMpService); @Override boolean sendKefuMessage(WxMpKefuMessage message); @Override WxMpKfList kfList(); @Override WxMpKfOnlineList kfOnlineList(); @Override boolean kfAccountAdd(WxMpKfAccountRequest request); @Override boolean kfAccountUpdate(WxMpKfAccountRequest request); @Override boolean kfAccountInviteWorker(WxMpKfAccountRequest request); @Override boolean kfAccountUploadHeadImg(String kfAccount, File imgFile); @Override boolean kfAccountDel(String kfAccount); @Override boolean kfSessionCreate(String openid, String kfAccount); @Override boolean kfSessionClose(String openid, String kfAccount); @Override WxMpKfSessionGetResult kfSessionGet(String openid); @Override WxMpKfSessionList kfSessionList(String kfAccount); @Override WxMpKfSessionWaitCaseList kfSessionGetWaitCase(); @Override WxMpKfMsgList kfMsgList(Date startTime, Date endTime, Long msgId, Integer number); @Override WxMpKfMsgList kfMsgList(Date startTime, Date endTime); }
WxMpKefuServiceImpl implements WxMpKefuService { @Override public boolean kfSessionCreate(String openid, String kfAccount) throws WxErrorException { WxMpKfSessionRequest request = new WxMpKfSessionRequest(kfAccount, openid); String responseContent = this.wxMpService.post(KFSESSION_CREATE, request.toJson()); return responseContent != null; } WxMpKefuServiceImpl(WxMpService wxMpService); @Override boolean sendKefuMessage(WxMpKefuMessage message); @Override WxMpKfList kfList(); @Override WxMpKfOnlineList kfOnlineList(); @Override boolean kfAccountAdd(WxMpKfAccountRequest request); @Override boolean kfAccountUpdate(WxMpKfAccountRequest request); @Override boolean kfAccountInviteWorker(WxMpKfAccountRequest request); @Override boolean kfAccountUploadHeadImg(String kfAccount, File imgFile); @Override boolean kfAccountDel(String kfAccount); @Override boolean kfSessionCreate(String openid, String kfAccount); @Override boolean kfSessionClose(String openid, String kfAccount); @Override WxMpKfSessionGetResult kfSessionGet(String openid); @Override WxMpKfSessionList kfSessionList(String kfAccount); @Override WxMpKfSessionWaitCaseList kfSessionGetWaitCase(); @Override WxMpKfMsgList kfMsgList(Date startTime, Date endTime, Long msgId, Integer number); @Override WxMpKfMsgList kfMsgList(Date startTime, Date endTime);  }