pom.xml
@@ -111,6 +111,21 @@ <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> </dependency> <dependency> <groupId>net.sf</groupId> <artifactId>jni4net</artifactId> <version>0.8.8.0</version> <scope>system</scope> <systemPath>${basedir}/src/main/resources/jni/jni4net.j-0.8.8.0.jar</systemPath> </dependency> <dependency> <groupId>com.led</groupId> <artifactId>show</artifactId> <version>0.0.1</version> <scope>system</scope> <systemPath>${basedir}/src/main/resources/jni/LedShow.j4n.jar</systemPath> </dependency> </dependencies> <build> @@ -193,8 +208,9 @@ <directory>src/main/resources</directory> <!-- 指定参与构建的resoures--> <includes> <include>*.**</include> <include>**/*</include> </includes> <filtering>true</filtering> </resource> </resources> <outputDirectory>1-running/config</outputDirectory> src/main/java/com/boying/Application.java
@@ -1,8 +1,14 @@ package com.boying; import cn.hutool.core.io.resource.ClassPathResource; import net.sf.jni4net.Bridge; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; import org.springframework.scheduling.annotation.EnableScheduling; import java.io.File; import java.io.IOException; /** * @author kdq @@ -17,4 +23,14 @@ public static void main(String[] args) { SpringApplication.run(Application.class, args); } @Bean public static void getBean() throws IOException { Bridge.setVerbose(true); Bridge.init(); //加载资源文件 ClassPathResource classPathResource = new ClassPathResource("jni/LedShow.j4n.dll"); File loadDll = classPathResource.getFile(); Bridge.LoadAndRegisterAssemblyFrom(loadDll); } } src/main/java/com/boying/controller/car/PlateServlet.java
@@ -37,7 +37,7 @@ * Servlet implementation class PlateServlet */ @Controller @RequestMapping("/car") @RequestMapping("/car2") @RequiredArgsConstructor public class PlateServlet extends HttpServlet { private static final long serialVersionUID = 1L; src/main/java/com/boying/controller/car/PlateServlet2.java
New file @@ -0,0 +1,683 @@ package com.boying.controller.car; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.boying.common.R; import com.boying.common.SystemConfigProperties; import com.boying.entity.*; import com.boying.service.*; import com.boying.util.DateUtilOther; import com.google.gson.JsonIOException; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.google.gson.JsonSyntaxException; import io.swagger.models.auth.In; import ledshow.CodeUtil; import ledshow.LedBean; import ledshow.ResultData; import lombok.RequiredArgsConstructor; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.*; import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.LocalDateTime; import java.time.ZoneOffset; import java.util.Base64; import java.util.Date; import java.util.List; import java.util.concurrent.TimeUnit; /** * Servlet implementation class PlateServlet */ @Controller @RequestMapping("/car") @RequiredArgsConstructor public class PlateServlet2 extends HttpServlet { private static final long serialVersionUID = 1L; private final SystemConfigProperties systemConfigProperties; private final StringRedisTemplate redisTemplate; private final ParkService parkService; private final OutParkService outParkService; private final EnterParkService enterParkService; private final BarrierService barrierService; private final TicketService ticketService; private final CostRuleService costRuleService; private final LedShowService ledShowService; private final WhiteListService whiteListService; /** * 回复开闸 */ protected void open(HttpServletRequest request, HttpServletResponse response,String data) throws ServletException, IOException { response.setContentType("text/json"); PrintWriter out = response.getWriter(); String aa = "{" + "\"Response_AlarmInfoPlate\": {" + "\"info\":\"ok\"," + "\"is_pay\":\"true\"," + "\"serialData\" :[" + "{" + "\"serialChannel\":0," + "\"data\" : \"" + data + "\"," + "\"dataLen\" :" + data.length() + "}" + "]" + "}" + "}"; out.println(aa); out.flush(); out.close(); } //转码 public static String deCode(String str) { try { byte[] b = str.getBytes("UTF-8");//���� String sa = new String(b);//����:��ʲô�ַ����������ʲô�ַ������� //String sa = new String(str.getBytes()); return sa; } catch (Exception e) { e.printStackTrace(); return ""; } } protected void noOpen(HttpServletRequest request, HttpServletResponse response,String data) throws IOException { response.setContentType("text/json"); PrintWriter out = response.getWriter(); String aa = "{" + "\"Response_AlarmInfoPlate\": {" + "\"serialData\" :[" + "{" + "\"serialChannel\":0," + "\"data\" : \"" + data + "\"," + "\"dataLen\" :" + data.length() + "}" + "]" + "}" + "}"; out.println(aa); out.flush(); out.close(); } protected void easyOpen(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setContentType("text/json"); PrintWriter out = response.getWriter(); out.println("{\"Response_AlarmInfoPlate\":{\"info\":\"ok\",\"content\":\"...\",\"is_pay\":\"true\"}}"); out.flush(); out.close(); } @PostMapping("/status") public void heart(String serialno,HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { Barrier barrier = barrierService.findByCode(serialno); Park park = parkService.getById(barrier.getParkId()); String redis = redisTemplate.opsForValue().get("park_up_" + park.getId()); String redisnum = redisTemplate.opsForValue().get("car_park_" + park.getId()); if(barrier!=null){ if(barrier.getType2()==1){ //待开闸 if(barrier.getType() == 1){ int i = Integer.parseInt(redisnum); i++; redisTemplate.opsForValue().set("car_park_" + park.getId(),Integer.toString(i),30, TimeUnit.DAYS); }else if(barrier.getType() == 0){ int i = Integer.parseInt(redisnum); i--; if(i<0){ redisTemplate.opsForValue().set("car_park_" + park.getId(),"0",30, TimeUnit.DAYS); redisTemplate.opsForValue().set("park_up_" + park.getId(),"true",30, TimeUnit.DAYS); }else { redisTemplate.opsForValue().set("car_park_" + park.getId(),Integer.toString(i),30, TimeUnit.DAYS); redisTemplate.opsForValue().set("park_up_" + park.getId(),"true",30, TimeUnit.DAYS); } } barrier.setType2(0); barrier.setUpdateTime(LocalDateTime.now()); barrier.setStatus(0); barrier.setUpdateTime(LocalDateTime.now()); barrierService.saveOrUpdate(barrier); easyOpen(request,response); }else { //不需开闸 barrier.setStatus(0); barrier.setUpdateTime(LocalDateTime.now()); barrierService.saveOrUpdate(barrier); OutPark outPark = outParkService.count4(barrier.getId()); if(outPark!=null){ if(barrier.getType() == 0){ int i = Integer.parseInt(redisnum); i--; if(i<0){ redisTemplate.opsForValue().set("car_park_" + park.getId(),"0",30, TimeUnit.DAYS); redisTemplate.opsForValue().set("park_up_" + park.getId(),"true",30, TimeUnit.DAYS); }else { redisTemplate.opsForValue().set("car_park_" + park.getId(),Integer.toString(i),30, TimeUnit.DAYS); redisTemplate.opsForValue().set("park_up_" + park.getId(),"true",30, TimeUnit.DAYS); } } outPark.setStatus2(1); outParkService.saveOrUpdate(outPark); easyOpen(request,response); } if(barrier.getType() == 1){ boolean in = barrierService.getDateDifIn(barrier.getId()); if(in){ inLedShowDefault(park.getId(),request,response); } }else if(barrier.getType() == 0){ boolean out = barrierService.getDateDifOut(barrier.getId()); if(out){ outLedShowDefault(request,response); } } } } } /** * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) */ @PostMapping("/PlateServlet") protected void info(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String s= ""; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss"); BufferedReader reader = new BufferedReader(new InputStreamReader(request.getInputStream(),"UTF-8")); String str = ""; String lineStr = ""; while((str = reader.readLine()) != null){ lineStr += str; } System.out.println("获取到的道闸推送数据为:"+lineStr); JSONObject jsonObject1 = JSON.parseObject(lineStr); JSONObject alarmInfoPlate = jsonObject1.getJSONObject("AlarmInfoPlate"); JSONObject result = alarmInfoPlate.getJSONObject("result"); JSONObject plateResult = result.getJSONObject("PlateResult"); String carNo = plateResult.get("license").toString(); String code = alarmInfoPlate.get("serialno").toString(); try { JsonParser parser=new JsonParser(); do { JsonObject jsonObject=(JsonObject) parser.parse(lineStr); if( jsonObject == null || jsonObject.isJsonNull() ) { break; } JsonObject jsonInfoPlate = jsonObject.get("AlarmInfoPlate").getAsJsonObject(); if( jsonInfoPlate == null || jsonInfoPlate.isJsonNull() ) { break; } JsonObject jsonResult = jsonInfoPlate.get("result").getAsJsonObject(); if( jsonResult == null || jsonResult.isJsonNull() ) { break; } JsonObject jsonPlateResult = jsonResult.get("PlateResult").getAsJsonObject(); if( jsonPlateResult == null || jsonPlateResult.isJsonNull() ) { break; } String license = jsonPlateResult.get("license").getAsString();//车牌号 if( license == null || license == "") { break; } String serialno = jsonInfoPlate.get("serialno").getAsString();//摄像机序列号 if( serialno == null || serialno == "" ) { break; } System.out.println("编号:"+serialno+"设备识别到了:"+license); String format = sdf.format(new Date()); s+= format+",车牌号为:"+license+",serialno为:"+code+" "; Barrier barrier = barrierService.findByCode(code); System.out.println("查询到道闸为:"+barrier); if(barrier==null){ s+="查询道闸为空\n"; }else{ if(barrier.getType()==0){ //noOpen(request,response); outPark(license, barrier.getId(), barrier.getParkId(),request,response); s+=license+"-保存出场记录\n"; }else{ String num = redisTemplate.opsForValue().get("car_park_" + barrier.getParkId()); if(StringUtils.isBlank(num)){ num = "0"; redisTemplate.opsForValue().set("car_park_" + barrier.getParkId(),num,30, TimeUnit.DAYS); redisTemplate.opsForValue().set("park_up_" + barrier.getParkId(),"true",30, TimeUnit.DAYS); } Park byId = parkService.getById(barrier.getParkId()); if(Integer.parseInt(num) >= byId.getNum() ){ //led显示 inLedFullShow(code, license,barrier.getParkId(),request,response); }else { //led显示 inLedShow(code, license,barrier.getParkId(),request,response); enterPark(license,barrier.getId(),barrier.getParkId()); s+=license+"-保存入场记录\n"; } } } writeTxt(s); }while(false); } catch (Exception e) { System.out.println("无入场记录"); s+=" ,查询场内记录异常"; writeTxt(s); } } private void writeTxt( String txt) { SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd"); try { FileWriter f = new FileWriter(systemConfigProperties.getLogPath()+sdf.format(new Date())+".txt",true); BufferedWriter bw=new BufferedWriter(f); bw.write(txt); bw.newLine(); bw.close(); } catch(Exception e) { System.out.println("打印错误"); } } public void enterPark(String carNo,Integer barrierId,Integer parkId) { Park park = parkService.getById(parkId); int num = 0; String s = redisTemplate.opsForValue().get("car_park_" + parkId); if(park != null){ num = park.getNum(); if(s !=null){ if(Integer.parseInt(s) >= num){ redisTemplate.opsForValue().set("park_up_" + parkId,"false",30, TimeUnit.DAYS); return; } }else { s= "0"; redisTemplate.opsForValue().set("car_park_" + parkId,s,30, TimeUnit.DAYS); redisTemplate.opsForValue().set("park_up_" + parkId,"true",30, TimeUnit.DAYS); } } enterParkService.deleteByCarNo(carNo,parkId); EnterPark enterPark = new EnterPark(); enterPark.setCarNo(carNo); enterPark.setBarrierId(barrierId); enterPark.setParkId(parkId); QueryWrapper<Ticket> wrapper = new QueryWrapper<>(); wrapper.lambda() .eq(Ticket::getCarNo,enterPark.getCarNo()) .eq(Ticket::getPayStatus,1); List<Ticket> tickets = ticketService.list(wrapper); if(tickets.size()>0){ enterPark.setStatus(1);//发现有违章 } enterParkService.saveOrUpdate(enterPark); Barrier barrier = barrierService.getById(barrierId); barrier.setType2(1); barrierService.saveOrUpdate(barrier); } public double outPark(String carNo,Integer barrierId,Integer parkId,HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { double money = 0.0; EnterPark enterPark = null; String toDayHrMinSec = null; OutPark outPark = new OutPark(); outPark.setCarNo(carNo); outPark.setParkId(parkId); outPark.setBarrierId(barrierId); outPark.setCreateTime(LocalDateTime.now()); outPark.setCode(System.currentTimeMillis()+""); List<EnterPark> byCarNo = enterParkService.findByCarNo(carNo,parkId); if(byCarNo.size() == 0){ System.out.println(carNo+"未发现场内车辆"); }else{ enterPark = byCarNo.get(0); System.out.println("入场记录:"+enterPark); outPark.setEnterTime(enterPark.getCreateTime()); try { long l = outPark.getCreateTime().toInstant(ZoneOffset.of("+8")).toEpochMilli() - enterPark.getCreateTime().toInstant(ZoneOffset.of("+8")).toEpochMilli(); outPark.setTime(l/(1000*60)); toDayHrMinSec = DateUtilOther.millisToDayHrMinSec(l/(1000*60)); money = costRuleService.getMoney(parkId, outPark.getEnterTime(), outPark.getCreateTime(), 1); } catch (ParseException e) { e.printStackTrace(); } } //outPark.setPrice(Double.valueOf(String.format("%.1f", money))); outPark.setPrice(money); outPark.setStatus3(findTicket(carNo)); outParkService.saveOrUpdate(outPark); Barrier barrier =barrierService.getById(barrierId); barrier.setCarNo(carNo); //led展示 if(toDayHrMinSec == null){ toDayHrMinSec = "不足两小时"; } //判断是否在白名单 QueryWrapper<WhiteList> wrapper = new QueryWrapper<>(); wrapper.lambda() .eq(WhiteList::getCarNo,carNo); List<WhiteList> all = whiteListService.list(wrapper); if(all.size() >0){ for(WhiteList w : all){ if(w.getType()==0){ outLedShowYueZu(barrier.getCarNo(),"月租车",parkId,request,response,0); OutPark byCarNoAndBarrierId = outParkService.findByCarNoAndBarrierId(carNo, barrierId); byCarNoAndBarrierId.setStatus(1); byCarNoAndBarrierId.setStatus2(1); outParkService.saveOrUpdate(byCarNoAndBarrierId); return 0.0; }else{ if(w.getParkIds()!=null){ if(w.getEndTime()!=null){ String parkIds = w.getParkIds(); String[] split = parkIds.split(","); for (String s : split) { int pid = Integer.parseInt(s); if(pid == outPark.getParkId() && System.currentTimeMillis()<w.getEndTime().getTime()){ outLedShowYueZu(barrier.getCarNo(),"月租车",parkId,request,response,0); OutPark byCarNoAndBarrierId = outParkService.findByCarNoAndBarrierId(carNo, barrierId); byCarNoAndBarrierId.setStatus(1); byCarNoAndBarrierId.setStatus2(1); outParkService.saveOrUpdate(byCarNoAndBarrierId); return 0.0; } } } } } } } if(outPark.getPrice()==0&&outPark.getStatus3()==0){ System.out.println(outPark.getCarNo()+"该车不需要缴费"); outLedShow(barrier.getCode(),barrier.getCarNo(),outPark.getPrice(),toDayHrMinSec,barrier.getParkId(),request,response,0); }else { //需要缴费或者有违章 System.out.println(outPark.getCarNo()+"该车需要缴费"+outPark.getPrice()); outLedShow(barrier.getCode(),barrier.getCarNo(),outPark.getPrice(),toDayHrMinSec,barrier.getParkId(),request,response,1); } barrierService.saveOrUpdate(barrier); return money; } public int findTicket(String carNo){ QueryWrapper<Ticket> wrapper = new QueryWrapper<>(); wrapper.lambda() .eq(Ticket::getCarNo,carNo) .eq(Ticket::getPayStatus,1); List<Ticket> tickets = ticketService.list(wrapper); if(tickets.size()>0){ return 1; }else{ return 0; } } public void inLedShow(String ledId,String carNo,Integer parkId,HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String num = redisTemplate.opsForValue().get("car_park_" + parkId); if(num == null){ num = "0"; } Park byId = parkService.getById(parkId); int n = Integer.parseInt(num)+1; redisTemplate.opsForValue().set("car_park_" + parkId,Integer.toString(n),30, TimeUnit.DAYS); int i = byId.getNum() - Integer.parseInt(num); if(i<0){ i = 0; } String carType = ""; String carDay = ""; Barrier barrier = barrierService.findByCode(ledId); WhiteList byCarNo = whiteListService.getByCarNo(carNo); if(byCarNo == null){ carType = "临时车"; }else { if (byCarNo.getType() == 0){ //白名单永久车辆 carType = "月租车"; }else { //白名单固定停车场车辆 if(byCarNo.getParkId().equals(barrier.getParkId())){ carType = "月租车"; long l = (byCarNo.getEndTime().getTime() - byCarNo.getStartTime().getTime()) / (24 * 3600 * 1000); carDay = "有效期还有"+l+"天"; } } } if(StringUtils.isBlank(carDay)){ carDay = "欢迎光临"; } LedBean ledBean = new LedBean(); ledBean.setcolor1(0); ledBean.setcolor2(0); ledBean.setcolor3(0); ledBean.setcolor4(0); ledBean.setcontent1(carNo); ledBean.setcontent2(carType); ledBean.setcontent3(carDay); ledBean.setcontent4("余位:"+i); ledBean.setdisMode1(1); ledBean.setdisMode2(1); ledBean.setdisMode3(1); ledBean.setdisMode4(1); ledBean.setvoiceContent(carType+","+carNo+","+carDay); ResultData resultData = CodeUtil.GetResultDataAnyLine(ledBean); byte[] dataX = new byte[resultData.getlenth()]; System.arraycopy(resultData.getdatas(),0,dataX,0,resultData.getlenth()); String data1 = Base64.getMimeEncoder().encodeToString(dataX) + "="; data1 = data1.replaceAll("\r\n", ""); open(request,response,data1);//入场开闸 } public void inLedFullShow(String ledId, String carNo, Integer parkId,HttpServletRequest request, HttpServletResponse response) throws IOException { String carType = ""; String carDay = ""; Barrier barrier = barrierService.findByCode(ledId); WhiteList byCarNo = whiteListService.getByCarNo(carNo); if(byCarNo == null){ carType = "临时车"; }else { if (byCarNo.getType() == 0){ //白名单永久车辆 carType = "月租车"; }else { //白名单固定停车场车辆 if(byCarNo.getParkId().equals(barrier.getParkId())){ carType = "月租车"; long l = (byCarNo.getEndTime().getTime() - byCarNo.getStartTime().getTime()) / (24 * 3600 * 1000); carDay = "有效期还有"+l+"天"; } } } LedBean ledBean = new LedBean(); ledBean.setcolor1(0); ledBean.setcolor2(0); ledBean.setcolor3(0); ledBean.setcolor4(0); ledBean.setcontent1(carNo); ledBean.setcontent2(carType); ledBean.setcontent3("车位已满"); ledBean.setcontent4("请驶离"); ledBean.setdisMode1(1); ledBean.setdisMode2(1); ledBean.setdisMode3(1); ledBean.setdisMode4(1); ledBean.setvoiceContent("车位已满,请驶离"); ResultData resultData = CodeUtil.GetResultDataAnyLine(ledBean); byte[] dataX = new byte[resultData.getlenth()]; System.arraycopy(resultData.getdatas(),0,dataX,0,resultData.getlenth()); String data1 = Base64.getMimeEncoder().encodeToString(dataX) + "="; data1 = data1.replaceAll("\r\n", ""); noOpen(request,response,data1);//入场开闸 } public void outLedShow(String ledId,String carNo,Double price,String timeStamp,Integer parkId,HttpServletRequest request, HttpServletResponse response,int type) throws ServletException, IOException { String redisnum = redisTemplate.opsForValue().get("car_park_" + parkId); LedBean ledBean = new LedBean(); ledBean.setcolor1(0); ledBean.setcolor2(0); ledBean.setcolor3(0); ledBean.setcolor4(0); ledBean.setcontent1(carNo); ledBean.setcontent2("停车"+timeStamp); ledBean.setcontent3("交费"+price+"元"); ledBean.setcontent4("禁止闯杆"); ledBean.setdisMode1(1); ledBean.setdisMode2(1); ledBean.setdisMode3(1); ledBean.setdisMode4(1); ledBean.setvoiceContent(carNo+"停车"+timeStamp+"交费"+price+"元"); ResultData resultData = CodeUtil.GetResultDataAnyLine(ledBean); byte[] dataX = new byte[resultData.getlenth()]; System.arraycopy(resultData.getdatas(),0,dataX,0,resultData.getlenth()); String data1 = Base64.getMimeEncoder().encodeToString(dataX) + "="; data1 = data1.replaceAll("\r\n", ""); if(type == 0){ //开闸 open(request,response,data1); int i = Integer.parseInt(redisnum); i--; if(i<0){ redisTemplate.opsForValue().set("car_park_" + parkId,"0",30, TimeUnit.DAYS); redisTemplate.opsForValue().set("park_up_" + parkId,"true",30, TimeUnit.DAYS); }else { redisTemplate.opsForValue().set("car_park_" + parkId,Integer.toString(i),30, TimeUnit.DAYS); redisTemplate.opsForValue().set("park_up_" + parkId,"true",30, TimeUnit.DAYS); } }else { noOpen(request,response,data1); } } public void outLedShowYueZu(String carNo,String text,Integer parkId,HttpServletRequest request, HttpServletResponse response,int type) throws ServletException, IOException{ String redisnum = redisTemplate.opsForValue().get("car_park_" + parkId); LedBean ledBean = new LedBean(); ledBean.setcolor1(0); ledBean.setcolor2(0); ledBean.setcolor3(0); ledBean.setcolor4(0); ledBean.setcontent1(carNo); ledBean.setcontent2(text); ledBean.setcontent3("减速慢行"); ledBean.setcontent4("欢迎下次光临"); ledBean.setdisMode1(1); ledBean.setdisMode2(1); ledBean.setdisMode3(1); ledBean.setdisMode4(1); ledBean.setvoiceContent(text+carNo+"欢迎下次光临"); ResultData resultData = CodeUtil.GetResultDataAnyLine(ledBean); byte[] dataX = new byte[resultData.getlenth()]; System.arraycopy(resultData.getdatas(),0,dataX,0,resultData.getlenth()); String data1 = Base64.getMimeEncoder().encodeToString(dataX) + "="; data1 = data1.replaceAll("\r\n", ""); if(type == 0){ //开闸 open(request,response,data1); int i = Integer.parseInt(redisnum); i--; if(i<0){ redisTemplate.opsForValue().set("car_park_" + parkId,"0",30, TimeUnit.DAYS); redisTemplate.opsForValue().set("park_up_" + parkId,"true",30, TimeUnit.DAYS); }else { redisTemplate.opsForValue().set("car_park_" + parkId,Integer.toString(i),30, TimeUnit.DAYS); redisTemplate.opsForValue().set("park_up_" + parkId,"true",30, TimeUnit.DAYS); } }else { noOpen(request,response,data1); } } public void outLedShowDefault(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ LedBean ledBean = new LedBean(); ledBean.setcolor1(0); ledBean.setcolor2(0); ledBean.setcolor3(0); ledBean.setcolor4(0); ledBean.setcontent1("一车一杆"); ledBean.setcontent2("减速慢行"); ledBean.setcontent3("无需取卡"); ledBean.setcontent4("扫码缴费"); ledBean.setdisMode1(1); ledBean.setdisMode2(1); ledBean.setdisMode3(1); ledBean.setdisMode4(1); ledBean.setvoiceContent(""); ResultData resultData = CodeUtil.GetResultDataAnyLine(ledBean); byte[] dataX = new byte[resultData.getlenth()]; System.arraycopy(resultData.getdatas(),0,dataX,0,resultData.getlenth()); String data1 = Base64.getMimeEncoder().encodeToString(dataX) + "="; data1 = data1.replaceAll("\r\n", ""); noOpen(request,response,data1); } public void inLedShowDefault(Integer parkId,HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ String num = redisTemplate.opsForValue().get("car_park_" + parkId); if(num == null){ num = "0"; } Park byId = parkService.getById(parkId); int i = byId.getNum() - Integer.parseInt(num); if(i<0){ i = 0; } LedBean ledBean = new LedBean(); ledBean.setcolor1(0); ledBean.setcolor2(0); ledBean.setcolor3(0); ledBean.setcolor4(0); ledBean.setcontent1("一车一杆"); ledBean.setcontent2("减速慢行"); ledBean.setcontent3("排队等候"); ledBean.setcontent4("余位:"+i); ledBean.setdisMode1(1); ledBean.setdisMode2(1); ledBean.setdisMode3(1); ledBean.setdisMode4(1); ledBean.setvoiceContent(""); ResultData resultData = CodeUtil.GetResultDataAnyLine(ledBean); byte[] dataX = new byte[resultData.getlenth()]; System.arraycopy(resultData.getdatas(),0,dataX,0,resultData.getlenth()); String data1 = Base64.getMimeEncoder().encodeToString(dataX) + "="; data1 = data1.replaceAll("\r\n", ""); noOpen(request,response,data1); } } src/main/java/com/boying/controller/phone/PayController.java
@@ -166,16 +166,10 @@ //支付接口通知 @PostMapping("result") public String result(HttpServletRequest request, String payKey, String payerTypeCode, String payerNum, String payCode, Double amt, String status, String errorInfo, String sign, String signType) throws Exception{ System.out.println(payCode+"-------"+status); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd_HH_mm_ss"); String s = "payCode===="+payCode+",\n"; try { s += sdf.format(new Date())+"开始走回调接口------>\n"; writeTxt(s); updateOrderRecord(payCode,status); }catch (Exception e){ s += "更新订单记录出异常------>"; writeTxt(s); e.printStackTrace(); } return "success"; } src/main/java/com/boying/job/PayResultScheduled.java
@@ -62,7 +62,6 @@ //查询到最后一个出场没缴费的记录 OutPark outPark = outParks.get(0); log.info("查询到最后的出场信息为:"+outPark); System.out.println(outPark); //查询缴款码记录更新 doPay(outPark); } src/main/java/com/boying/service/BarrierService.java
@@ -12,4 +12,6 @@ */ public interface BarrierService extends IService<Barrier> { Barrier findByCode(String code); boolean getDateDifIn(Integer barrierId); boolean getDateDifOut(Integer barrierId); } src/main/java/com/boying/service/impl/BarrierServiceImpl.java
@@ -1,16 +1,22 @@ package com.boying.service.impl; import cn.hutool.core.date.DateUnit; import cn.hutool.core.date.DateUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.boying.entity.Barrier; import com.boying.entity.EnterPark; import com.boying.entity.OutPark; import com.boying.mapper.BarrierMapper; import com.boying.mapper.EnterParkMapper; import com.boying.mapper.OutParkMapper; import com.boying.service.BarrierService; import com.boying.service.EnterParkService; import lombok.AllArgsConstructor; import org.springframework.stereotype.Service; import java.time.ZoneId; import java.util.Date; import java.util.List; /** @@ -23,6 +29,8 @@ @Service @AllArgsConstructor public class BarrierServiceImpl extends ServiceImpl<BarrierMapper, Barrier> implements BarrierService { private EnterParkMapper enterParkMapper; private OutParkMapper outParkMapper; @Override public Barrier findByCode(String code) { QueryWrapper<Barrier> wrapper = new QueryWrapper<>(); @@ -35,4 +43,37 @@ return null; } } @Override public boolean getDateDifIn(Integer barrierId) { QueryWrapper<EnterPark> wrapper = new QueryWrapper<>(); wrapper.lambda() .eq(EnterPark::getBarrierId,barrierId) .orderByDesc(EnterPark::getId) .last(" limit 1"); EnterPark enterPark = enterParkMapper.selectOne(wrapper); long dif = DateUtil.between(Date.from( enterPark.getCreateTime().atZone( ZoneId.systemDefault()).toInstant()), new Date(), DateUnit.SECOND, false); if(dif >= 5 && dif <= 10){ return true; }else { return false; } } @Override public boolean getDateDifOut(Integer barrierId) { QueryWrapper<OutPark> wrapper = new QueryWrapper<>(); wrapper.lambda() .eq(OutPark::getBarrierId,barrierId) .orderByDesc(OutPark::getId) .last(" limit 1"); OutPark outPark = outParkMapper.selectOne(wrapper); long dif = DateUtil.between(Date.from( outPark.getCreateTime().atZone( ZoneId.systemDefault()).toInstant()), new Date(), DateUnit.SECOND, false); if(dif >= 20 && dif <= 30){ return true; }else { return false; } } } src/main/resources/application.yml
@@ -5,7 +5,7 @@ datasource: url: jdbc:mysql://localhost:3306/ffparknew?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8 username: root password: 2009Boying!@# password: rootroot driverClassName: com.mysql.cj.jdbc.Driver #连接池 hikari: src/main/resources/jni/LedShow.dllBinary files differ
src/main/resources/jni/LedShow.j4n.dllBinary files differ
src/main/resources/jni/LedShow.j4n.jarBinary files differ
src/main/resources/jni/LedShow.proxygen.xml
New file @@ -0,0 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <jni4net-proxygen xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://jni4net.sf.net/0.8.8.0/toolConfig.xsd"> <TargetDirJvm>E:\boying\ffpark\2022_ffpark_back\src\main\java\jvm</TargetDirJvm> <TargetDirClr>E:\boying\ffpark\2022_ffpark_back\src\main\java\clr</TargetDirClr> <AssemblyReference Assembly="D:\LedShow\LedShow\bin\x64\Debug\LedShow.dll" Generate="true" /> </jni4net-proxygen> src/main/resources/jni/build.cmd
New file @@ -0,0 +1,21 @@ @echo off if not exist target mkdir target if not exist target\classes mkdir target\classes echo compile classes javac -nowarn -d target\classes -sourcepath jvm -cp "d:\jni4net-0.8.8.0-bin\lib\jni4net.j-0.8.8.0.jar"; "jvm\ledshow\CodeUtil.java" "jvm\ledshow\LedBean.java" "jvm\ledshow\ResultData.java" IF %ERRORLEVEL% NEQ 0 goto end echo LedShow.j4n.jar jar cvf LedShow.j4n.jar -C target\classes "ledshow\CodeUtil.class" -C target\classes "ledshow\LedBean.class" -C target\classes "ledshow\ResultData.class" > nul IF %ERRORLEVEL% NEQ 0 goto end echo LedShow.j4n.dll csc /nologo /warn:0 /t:library /out:LedShow.j4n.dll /recurse:clr\*.cs /reference:"D:\LedShow\LedShow\bin\x64\Debug\LedShow.dll" /reference:"D:\jni4net-0.8.8.0-bin\lib\jni4net.n-0.8.8.0.dll" IF %ERRORLEVEL% NEQ 0 goto end :end src/main/resources/jni/clr/ledshow/CodeUtil.generated.cs
New file @@ -0,0 +1,127 @@ //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by jni4net. See http://jni4net.sourceforge.net/ // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace LedShow { #region Component Designer generated code public partial class CodeUtil_ { public static global::java.lang.Class _class { get { return global::LedShow.@__CodeUtil.staticClass; } } } #endregion #region Component Designer generated code [global::net.sf.jni4net.attributes.JavaProxyAttribute(typeof(global::LedShow.CodeUtil), typeof(global::LedShow.CodeUtil_))] [global::net.sf.jni4net.attributes.ClrWrapperAttribute(typeof(global::LedShow.CodeUtil), typeof(global::LedShow.CodeUtil_))] internal sealed partial class @__CodeUtil : global::java.lang.Object { internal new static global::java.lang.Class staticClass; private @__CodeUtil(global::net.sf.jni4net.jni.JNIEnv @__env) : base(@__env) { } private static void InitJNI(global::net.sf.jni4net.jni.JNIEnv @__env, java.lang.Class @__class) { global::LedShow.@__CodeUtil.staticClass = @__class; } private static global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> @__Init(global::net.sf.jni4net.jni.JNIEnv @__env, global::java.lang.Class @__class) { global::System.Type @__type = typeof(__CodeUtil); global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> methods = new global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod>(); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "GetVoiceOnly", "GetVoiceOnly0", "(Ljava/lang/String;)Lledshow/ResultData;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "GetResultDataAnyLine", "GetResultDataAnyLine1", "(Lledshow/LedBean;)Lledshow/ResultData;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "GetResultDataAllLine", "GetResultDataAllLine2", "(Lledshow/LedBean;)Lledshow/ResultData;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "Camera485Transmission", "Camera485Transmission3", "(Lnet/sf/jni4net/Ref;I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "LED_MuiltLineDisAndPlayVoice", "LED_MuiltLineDisAndPlayVoice4", "(Lnet/sf/jni4net/Ref;Ljava/lang/String;B)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "__ctorCodeUtil0", "__ctorCodeUtil0", "(Lnet/sf/jni4net/inj/IClrProxy;)V")); return methods; } private static global::net.sf.jni4net.utils.JniHandle GetVoiceOnly0(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__class, global::net.sf.jni4net.utils.JniLocalHandle voiceContent) { // (Ljava/lang/String;)Lledshow/ResultData; // (LSystem/String;)LLedShow/ResultData; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { @__return = global::net.sf.jni4net.utils.Convertor.StrongC2Jp<global::LedShow.ResultData>(@__env, global::LedShow.CodeUtil.GetVoiceOnly(global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, voiceContent))); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static global::net.sf.jni4net.utils.JniHandle GetResultDataAnyLine1(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__class, global::net.sf.jni4net.utils.JniLocalHandle ledBean) { // (Lledshow/LedBean;)Lledshow/ResultData; // (LLedShow/LedBean;)LLedShow/ResultData; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { @__return = global::net.sf.jni4net.utils.Convertor.StrongC2Jp<global::LedShow.ResultData>(@__env, global::LedShow.CodeUtil.GetResultDataAnyLine(global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, ledBean))); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static global::net.sf.jni4net.utils.JniHandle GetResultDataAllLine2(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__class, global::net.sf.jni4net.utils.JniLocalHandle ledBean) { // (Lledshow/LedBean;)Lledshow/ResultData; // (LLedShow/LedBean;)LLedShow/ResultData; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { @__return = global::net.sf.jni4net.utils.Convertor.StrongC2Jp<global::LedShow.ResultData>(@__env, global::LedShow.CodeUtil.GetResultDataAllLine(global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, ledBean))); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void Camera485Transmission3(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle Buff, int Len) { // (Lnet/sf/jni4net/Ref;I)V // ([BI)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { byte[] @__ref_Buff = net.sf.jni4net.Ref.GetValue<byte[]>(@__env, Buff); global::LedShow.CodeUtil @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.CodeUtil>(@__env, @__obj); @__real.Camera485Transmission(ref __ref_Buff, Len); net.sf.jni4net.Ref.SetValue<byte[]>(@__env, Buff, @__ref_Buff); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static void LED_MuiltLineDisAndPlayVoice4(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle TextContext, global::net.sf.jni4net.utils.JniLocalHandle VoiceText, byte SaveFlag) { // (Lnet/sf/jni4net/Ref;Ljava/lang/String;B)V // ([LLedShow/CodeUtil+TEXT_CONTEXT;LSystem/String;B)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.CodeUtil.TEXT_CONTEXT[] @__ref_TextContext = net.sf.jni4net.Ref.GetValue<global::LedShow.CodeUtil.TEXT_CONTEXT[]>(@__env, TextContext); global::LedShow.CodeUtil @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.CodeUtil>(@__env, @__obj); @__real.LED_MuiltLineDisAndPlayVoice(ref __ref_TextContext, global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, VoiceText), SaveFlag); net.sf.jni4net.Ref.SetValue<global::LedShow.CodeUtil.TEXT_CONTEXT[]>(@__env, TextContext, @__ref_TextContext); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static void @__ctorCodeUtil0(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__class, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()V // ()V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.CodeUtil @__real = new global::LedShow.CodeUtil(); global::net.sf.jni4net.utils.Convertor.InitProxy(@__env, @__obj, @__real); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } new internal sealed class ContructionHelper : global::net.sf.jni4net.utils.IConstructionHelper { public global::net.sf.jni4net.jni.IJvmProxy CreateProxy(global::net.sf.jni4net.jni.JNIEnv @__env) { return new global::LedShow.@__CodeUtil(@__env); } } } #endregion } src/main/resources/jni/clr/ledshow/LedBean.generated.cs
New file @@ -0,0 +1,737 @@ //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by jni4net. See http://jni4net.sourceforge.net/ // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace LedShow { #region Component Designer generated code public partial class LedBean_ { public static global::java.lang.Class _class { get { return global::LedShow.@__LedBean.staticClass; } } } #endregion #region Component Designer generated code [global::net.sf.jni4net.attributes.JavaProxyAttribute(typeof(global::LedShow.LedBean), typeof(global::LedShow.LedBean_))] [global::net.sf.jni4net.attributes.ClrWrapperAttribute(typeof(global::LedShow.LedBean), typeof(global::LedShow.LedBean_))] internal sealed partial class @__LedBean : global::java.lang.Object { internal new static global::java.lang.Class staticClass; private @__LedBean(global::net.sf.jni4net.jni.JNIEnv @__env) : base(@__env) { } private static void InitJNI(global::net.sf.jni4net.jni.JNIEnv @__env, java.lang.Class @__class) { global::LedShow.@__LedBean.staticClass = @__class; } private static global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> @__Init(global::net.sf.jni4net.jni.JNIEnv @__env, global::java.lang.Class @__class) { global::System.Type @__type = typeof(__LedBean); global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> methods = new global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod>(); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getid", "id0", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setid", "id1", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getledId", "ledId2", "()Ljava/lang/String;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setledId", "ledId3", "(Ljava/lang/String;)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getname", "name4", "()Ljava/lang/String;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setname", "name5", "(Ljava/lang/String;)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getipAddress", "ipAddress6", "()Ljava/lang/String;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setipAddress", "ipAddress7", "(Ljava/lang/String;)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getport", "port8", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setport", "port9", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getisDefault", "isDefault10", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setisDefault", "isDefault11", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "gettype", "type12", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "settype", "type13", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getpassword", "password14", "()Ljava/lang/String;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setpassword", "password15", "(Ljava/lang/String;)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getstatus", "status16", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setstatus", "status17", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "gettimeStamp", "timeStamp18", "()Ljava/lang/String;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "settimeStamp", "timeStamp19", "(Ljava/lang/String;)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getstatus1", "status120", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setstatus1", "status121", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getdisMode1", "disMode122", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setdisMode1", "disMode123", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getcolor1", "color124", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setcolor1", "color125", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getcontent1", "content126", "()Ljava/lang/String;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setcontent1", "content127", "(Ljava/lang/String;)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getstatus2", "status228", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setstatus2", "status229", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getdisMode2", "disMode230", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setdisMode2", "disMode231", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getcolor2", "color232", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setcolor2", "color233", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getcontent2", "content234", "()Ljava/lang/String;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setcontent2", "content235", "(Ljava/lang/String;)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getstatus3", "status336", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setstatus3", "status337", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getdisMode3", "disMode338", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setdisMode3", "disMode339", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getcolor3", "color340", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setcolor3", "color341", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getcontent3", "content342", "()Ljava/lang/String;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setcontent3", "content343", "(Ljava/lang/String;)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getstatus4", "status444", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setstatus4", "status445", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getdisMode4", "disMode446", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setdisMode4", "disMode447", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getcolor4", "color448", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setcolor4", "color449", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getcontent4", "content450", "()Ljava/lang/String;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setcontent4", "content451", "(Ljava/lang/String;)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getvoiceContent", "voiceContent52", "()Ljava/lang/String;")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setvoiceContent", "voiceContent53", "(Ljava/lang/String;)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getnumber", "number54", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setnumber", "number55", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "__ctorLedBean0", "__ctorLedBean0", "(Lnet/sf/jni4net/inj/IClrProxy;)V")); return methods; } private static int id0(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.id)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void id1(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.id = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle ledId2(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.ledId); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void ledId3(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.ledId = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle name4(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.name); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void name5(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.name = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle ipAddress6(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.ipAddress); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void ipAddress7(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.ipAddress = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int port8(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.port)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void port9(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.port = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int isDefault10(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.isDefault)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void isDefault11(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.isDefault = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int type12(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.type)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void type13(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.type = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle password14(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.password); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void password15(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.password = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int status16(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.status)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void status17(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.status = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle timeStamp18(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.timeStamp); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void timeStamp19(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.timeStamp = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int status120(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.status1)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void status121(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.status1 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int disMode122(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.disMode1)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void disMode123(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.disMode1 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int color124(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.color1)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void color125(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.color1 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle content126(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.content1); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void content127(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.content1 = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int status228(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.status2)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void status229(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.status2 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int disMode230(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.disMode2)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void disMode231(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.disMode2 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int color232(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.color2)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void color233(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.color2 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle content234(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.content2); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void content235(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.content2 = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int status336(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.status3)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void status337(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.status3 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int disMode338(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.disMode3)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void disMode339(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.disMode3 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int color340(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.color3)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void color341(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.color3 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle content342(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.content3); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void content343(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.content3 = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int status444(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.status4)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void status445(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.status4 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int disMode446(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.disMode4)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void disMode447(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.disMode4 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int color448(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.color4)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void color449(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.color4 = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle content450(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.content4); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void content451(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.content4 = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle voiceContent52(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()Ljava/lang/String; // ()LSystem/String; global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.StrongC2JString(@__env, @__real.voiceContent); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void voiceContent53(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // (Ljava/lang/String;)V // (LSystem/String;)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.voiceContent = global::net.sf.jni4net.utils.Convertor.StrongJ2CString(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static int number54(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__return = ((int)(@__real.number)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void number55(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.LedBean>(@__env, @__obj); @__real.number = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static void @__ctorLedBean0(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__class, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()V // ()V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.LedBean @__real = new global::LedShow.LedBean(); global::net.sf.jni4net.utils.Convertor.InitProxy(@__env, @__obj, @__real); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } new internal sealed class ContructionHelper : global::net.sf.jni4net.utils.IConstructionHelper { public global::net.sf.jni4net.jni.IJvmProxy CreateProxy(global::net.sf.jni4net.jni.JNIEnv @__env) { return new global::LedShow.@__LedBean(@__env); } } } #endregion } src/main/resources/jni/clr/ledshow/ResultData.generated.cs
New file @@ -0,0 +1,113 @@ //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by jni4net. See http://jni4net.sourceforge.net/ // Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace LedShow { #region Component Designer generated code public partial class ResultData_ { public static global::java.lang.Class _class { get { return global::LedShow.@__ResultData.staticClass; } } } #endregion #region Component Designer generated code [global::net.sf.jni4net.attributes.JavaProxyAttribute(typeof(global::LedShow.ResultData), typeof(global::LedShow.ResultData_))] [global::net.sf.jni4net.attributes.ClrWrapperAttribute(typeof(global::LedShow.ResultData), typeof(global::LedShow.ResultData_))] internal sealed partial class @__ResultData : global::java.lang.Object { internal new static global::java.lang.Class staticClass; private @__ResultData(global::net.sf.jni4net.jni.JNIEnv @__env) : base(@__env) { } private static void InitJNI(global::net.sf.jni4net.jni.JNIEnv @__env, java.lang.Class @__class) { global::LedShow.@__ResultData.staticClass = @__class; } private static global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> @__Init(global::net.sf.jni4net.jni.JNIEnv @__env, global::java.lang.Class @__class) { global::System.Type @__type = typeof(__ResultData); global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod> methods = new global::System.Collections.Generic.List<global::net.sf.jni4net.jni.JNINativeMethod>(); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getlenth", "lenth0", "()I")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setlenth", "lenth1", "(I)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "getdatas", "datas2", "()[B")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "setdatas", "datas3", "([B)V")); methods.Add(global::net.sf.jni4net.jni.JNINativeMethod.Create(@__type, "__ctorResultData0", "__ctorResultData0", "(Lnet/sf/jni4net/inj/IClrProxy;)V")); return methods; } private static int lenth0(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()I // ()I global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); int @__return = default(int); try { global::LedShow.ResultData @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.ResultData>(@__env, @__obj); @__return = ((int)(@__real.lenth)); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void lenth1(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int value) { // (I)V // (I)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.ResultData @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.ResultData>(@__env, @__obj); @__real.lenth = value; }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static global::net.sf.jni4net.utils.JniHandle datas2(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()[B // ()[B global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); global::net.sf.jni4net.utils.JniHandle @__return = default(global::net.sf.jni4net.utils.JniHandle); try { global::LedShow.ResultData @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.ResultData>(@__env, @__obj); @__return = global::net.sf.jni4net.utils.Convertor.ArrayPrimC2J(@__env, @__real.datas); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} return @__return; } private static void datas3(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__obj, global::net.sf.jni4net.utils.JniLocalHandle value) { // ([B)V // ([B)V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.ResultData @__real = global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::LedShow.ResultData>(@__env, @__obj); @__real.datas = global::net.sf.jni4net.utils.Convertor.ArrayPrimJ2Cbyte(@__env, value); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } private static void @__ctorResultData0(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__class, global::net.sf.jni4net.utils.JniLocalHandle @__obj) { // ()V // ()V global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp); try { global::LedShow.ResultData @__real = new global::LedShow.ResultData(); global::net.sf.jni4net.utils.Convertor.InitProxy(@__env, @__obj, @__real); }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);} } new internal sealed class ContructionHelper : global::net.sf.jni4net.utils.IConstructionHelper { public global::net.sf.jni4net.jni.IJvmProxy CreateProxy(global::net.sf.jni4net.jni.JNIEnv @__env) { return new global::LedShow.@__ResultData(@__env); } } } #endregion } src/main/resources/jni/jni4net.j-0.8.8.0.jarBinary files differ
src/main/resources/jni/jni4net.n-0.8.8.0.dllBinary files differ
src/main/resources/jni/jni4net.n.w64.v40-0.8.8.0.dllBinary files differ
src/main/resources/jni/jvm/CodeUtil.java
New file @@ -0,0 +1,54 @@ // ------------------------------------------------------------------------------ // <autogenerated> // This code was generated by jni4net. See http://jni4net.sourceforge.net/ // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </autogenerated> // ------------------------------------------------------------------------------ package com.boying.entity.jvm; @net.sf.jni4net.attributes.ClrType public class CodeUtil extends system.Object { //<generated-proxy> private static system.Type staticType; protected CodeUtil(net.sf.jni4net.inj.INJEnv __env, long __handle) { super(__env, __handle); } @net.sf.jni4net.attributes.ClrConstructor("()V") public CodeUtil() { super(((net.sf.jni4net.inj.INJEnv)(null)), 0); jvm.ledshow.CodeUtil.__ctorCodeUtil0(this); } @net.sf.jni4net.attributes.ClrMethod("()V") private native static void __ctorCodeUtil0(net.sf.jni4net.inj.IClrProxy thiz); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)LLedShow/ResultData;") public native static ledshow.ResultData GetVoiceOnly(String voiceContent); @net.sf.jni4net.attributes.ClrMethod("(LLedShow/LedBean;)LLedShow/ResultData;") public native static ledshow.ResultData GetResultDataAnyLine(ledshow.LedBean ledBean); @net.sf.jni4net.attributes.ClrMethod("(LLedShow/LedBean;)LLedShow/ResultData;") public native static ledshow.ResultData GetResultDataAllLine(ledshow.LedBean ledBean); @net.sf.jni4net.attributes.ClrMethod("([BI)V") public native void Camera485Transmission(net.sf.jni4net.Ref<system.Object> Buff, int Len); @net.sf.jni4net.attributes.ClrMethod("([LLedShow/CodeUtil+TEXT_CONTEXT;LSystem/String;B)V") public native void LED_MuiltLineDisAndPlayVoice(net.sf.jni4net.Ref<system.Object> TextContext, String VoiceText, byte SaveFlag); public static system.Type typeof() { return jvm.ledshow.CodeUtil.staticType; } private static void InitJNI(net.sf.jni4net.inj.INJEnv env, system.Type staticType) { jvm.ledshow.CodeUtil.staticType = staticType; } //</generated-proxy> } src/main/resources/jni/jvm/LedBean.java
New file @@ -0,0 +1,207 @@ // ------------------------------------------------------------------------------ // <autogenerated> // This code was generated by jni4net. See http://jni4net.sourceforge.net/ // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </autogenerated> // ------------------------------------------------------------------------------ package com.boying.entity.jvm; @net.sf.jni4net.attributes.ClrType public class LedBean extends system.Object { //<generated-proxy> private static system.Type staticType; protected LedBean(net.sf.jni4net.inj.INJEnv __env, long __handle) { super(__env, __handle); } @net.sf.jni4net.attributes.ClrConstructor("()V") public LedBean() { super(((net.sf.jni4net.inj.INJEnv)(null)), 0); jvm.ledshow.LedBean.__ctorLedBean0(this); } @net.sf.jni4net.attributes.ClrMethod("()V") private native static void __ctorLedBean0(net.sf.jni4net.inj.IClrProxy thiz); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getid(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setid(int value); @net.sf.jni4net.attributes.ClrMethod("()LSystem/String;") public native String getledId(); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)V") public native void setledId(String value); @net.sf.jni4net.attributes.ClrMethod("()LSystem/String;") public native String getname(); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)V") public native void setname(String value); @net.sf.jni4net.attributes.ClrMethod("()LSystem/String;") public native String getipAddress(); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)V") public native void setipAddress(String value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getport(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setport(int value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getisDefault(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setisDefault(int value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int gettype(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void settype(int value); @net.sf.jni4net.attributes.ClrMethod("()LSystem/String;") public native String getpassword(); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)V") public native void setpassword(String value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getstatus(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setstatus(int value); @net.sf.jni4net.attributes.ClrMethod("()LSystem/String;") public native String gettimeStamp(); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)V") public native void settimeStamp(String value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getstatus1(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setstatus1(int value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getdisMode1(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setdisMode1(int value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getcolor1(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setcolor1(int value); @net.sf.jni4net.attributes.ClrMethod("()LSystem/String;") public native String getcontent1(); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)V") public native void setcontent1(String value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getstatus2(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setstatus2(int value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getdisMode2(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setdisMode2(int value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getcolor2(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setcolor2(int value); @net.sf.jni4net.attributes.ClrMethod("()LSystem/String;") public native String getcontent2(); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)V") public native void setcontent2(String value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getstatus3(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setstatus3(int value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getdisMode3(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setdisMode3(int value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getcolor3(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setcolor3(int value); @net.sf.jni4net.attributes.ClrMethod("()LSystem/String;") public native String getcontent3(); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)V") public native void setcontent3(String value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getstatus4(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setstatus4(int value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getdisMode4(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setdisMode4(int value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getcolor4(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setcolor4(int value); @net.sf.jni4net.attributes.ClrMethod("()LSystem/String;") public native String getcontent4(); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)V") public native void setcontent4(String value); @net.sf.jni4net.attributes.ClrMethod("()LSystem/String;") public native String getvoiceContent(); @net.sf.jni4net.attributes.ClrMethod("(LSystem/String;)V") public native void setvoiceContent(String value); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getnumber(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setnumber(int value); public static system.Type typeof() { return jvm.ledshow.LedBean.staticType; } private static void InitJNI(net.sf.jni4net.inj.INJEnv env, system.Type staticType) { jvm.ledshow.LedBean.staticType = staticType; } //</generated-proxy> } src/main/resources/jni/jvm/ResultData.java
New file @@ -0,0 +1,51 @@ // ------------------------------------------------------------------------------ // <autogenerated> // This code was generated by jni4net. See http://jni4net.sourceforge.net/ // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </autogenerated> // ------------------------------------------------------------------------------ package com.boying.entity.jvm; @net.sf.jni4net.attributes.ClrType public class ResultData extends system.Object { //<generated-proxy> private static system.Type staticType; protected ResultData(net.sf.jni4net.inj.INJEnv __env, long __handle) { super(__env, __handle); } @net.sf.jni4net.attributes.ClrConstructor("()V") public ResultData() { super(((net.sf.jni4net.inj.INJEnv)(null)), 0); jvm.ledshow.ResultData.__ctorResultData0(this); } @net.sf.jni4net.attributes.ClrMethod("()V") private native static void __ctorResultData0(net.sf.jni4net.inj.IClrProxy thiz); @net.sf.jni4net.attributes.ClrMethod("()I") public native int getlenth(); @net.sf.jni4net.attributes.ClrMethod("(I)V") public native void setlenth(int value); @net.sf.jni4net.attributes.ClrMethod("()[B") public native byte[] getdatas(); @net.sf.jni4net.attributes.ClrMethod("([B)V") public native void setdatas(byte[] value); public static system.Type typeof() { return jvm.ledshow.ResultData.staticType; } private static void InitJNI(net.sf.jni4net.inj.INJEnv env, system.Type staticType) { jvm.ledshow.ResultData.staticType = staticType; } //</generated-proxy> }