@Test public void testCreateWxaCode() throws Exception { final File wxCode = this.wxService.getQrcodeService().createWxaCode("111", 122); assertThat(wxCode).isNotNull(); }
@Override public File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { final QrcodeRequestExecutor executor = new QrcodeRequestExecutor(this.wxMaService.getRequestHttp()); return this.wxMaService.execute(executor, GET_WXACODE_URL, WxaCode.builder() .path(path) .width(width) .autoColor(autoColor) .lineColor(lineColor) .isHyaline(isHyaline) .build()); }
WxMaQrcodeServiceImpl implements WxMaQrcodeService { @Override public File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { final QrcodeRequestExecutor executor = new QrcodeRequestExecutor(this.wxMaService.getRequestHttp()); return this.wxMaService.execute(executor, GET_WXACODE_URL, WxaCode.builder() .path(path) .width(width) .autoColor(autoColor) .lineColor(lineColor) .isHyaline(isHyaline) .build()); } }
WxMaQrcodeServiceImpl implements WxMaQrcodeService { @Override public File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { final QrcodeRequestExecutor executor = new QrcodeRequestExecutor(this.wxMaService.getRequestHttp()); return this.wxMaService.execute(executor, GET_WXACODE_URL, WxaCode.builder() .path(path) .width(width) .autoColor(autoColor) .lineColor(lineColor) .isHyaline(isHyaline) .build()); } WxMaQrcodeServiceImpl(WxMaService wxMaService); }
WxMaQrcodeServiceImpl implements WxMaQrcodeService { @Override public File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { final QrcodeRequestExecutor executor = new QrcodeRequestExecutor(this.wxMaService.getRequestHttp()); return this.wxMaService.execute(executor, GET_WXACODE_URL, WxaCode.builder() .path(path) .width(width) .autoColor(autoColor) .lineColor(lineColor) .isHyaline(isHyaline) .build()); } WxMaQrcodeServiceImpl(WxMaService wxMaService); @Override byte[] createQrcodeBytes(String path, int width); @Override File createQrcode(String path, int width); @Override File createQrcode(String path); @Override byte[] createWxaCodeBytes(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline); @Override File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline); @Override File createWxaCode(String path, int width); @Override File createWxaCode(String path); @Override byte[] createWxaCodeUnlimitBytes(String scene, String page, int width, boolean autoColor,
                                          WxMaCodeLineColor lineColor, boolean isHyaline); @Override File createWxaCodeUnlimit(String scene, String page, int width, boolean autoColor,
                                   WxMaCodeLineColor lineColor, boolean isHyaline); @Override File createWxaCodeUnlimit(String scene, String page); }
WxMaQrcodeServiceImpl implements WxMaQrcodeService { @Override public File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline) throws WxErrorException { final QrcodeRequestExecutor executor = new QrcodeRequestExecutor(this.wxMaService.getRequestHttp()); return this.wxMaService.execute(executor, GET_WXACODE_URL, WxaCode.builder() .path(path) .width(width) .autoColor(autoColor) .lineColor(lineColor) .isHyaline(isHyaline) .build()); } WxMaQrcodeServiceImpl(WxMaService wxMaService); @Override byte[] createQrcodeBytes(String path, int width); @Override File createQrcode(String path, int width); @Override File createQrcode(String path); @Override byte[] createWxaCodeBytes(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline); @Override File createWxaCode(String path, int width, boolean autoColor, WxMaCodeLineColor lineColor, boolean isHyaline); @Override File createWxaCode(String path, int width); @Override File createWxaCode(String path); @Override byte[] createWxaCodeUnlimitBytes(String scene, String page, int width, boolean autoColor,
                                          WxMaCodeLineColor lineColor, boolean isHyaline); @Override File createWxaCodeUnlimit(String scene, String page, int width, boolean autoColor,
                                   WxMaCodeLineColor lineColor, boolean isHyaline); @Override File createWxaCodeUnlimit(String scene, String page);  }