001/* 002 * =========================================================================================== 003 * = COPYRIGHT 004 * PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION 005 * This software is supplied under the terms of a license agreement or nondisclosure 006 * agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or 007 * disclosed except in accordance with the terms in that agreement. 008 * Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved. 009 * Description: // Detail description about the function of this module, 010 * // interfaces with the other modules, and dependencies. 011 * Revision History: 012 * Date Author Action 013 * 2017/04/01 PAX Create/Add/Modify/Delete 014 * =========================================================================================== 015 */ 016package com.pax.dal.entity; 017 018/** 019 * <div class="zh">设备信息实体类。</div> 020 * <div class="en">Device information entity class.</div> 021 * @since V3.17.00 022 */ 023public class DeviceInfo { 024 private byte[] BLEVersion; 025 private String deviceType; 026 private byte iccReadSlotNum; 027 private byte[] iccReaderSlotList; 028 private byte magReaderCombined; 029 private byte pinpadPortsNum; 030 private byte[] pinpadPorts; 031 private String platformId; 032 private short printerMaxDotLine; 033 private short printerMaxPageWidth; 034 private short printerStep; 035 private byte printerType; 036 private byte[] RS232Ports; 037 private byte RS232PortsNum; 038 private byte usbDevPort; 039 private byte usbHostPort; 040 private byte[] usbHostPortExt; 041 private byte[] reserved; 042 043 public DeviceInfo(byte[] BLEVersion, String deviceType, byte iccReadSlotNum, byte[] iccReaderSlotList, byte magReaderCombined, byte pinpadPortsNum, byte[] pinpadPorts, String platformId, short printerMaxDotLine, short printerMaxPageWidth, short printerStep, byte printerType, byte[] RS232Ports, byte RS232PortsNum, byte usbDevPort, byte usbHostPort, byte[] usbHostPortExt, byte[] reserved) { 044 this.BLEVersion = BLEVersion; 045 this.deviceType = deviceType; 046 this.iccReadSlotNum = iccReadSlotNum; 047 this.iccReaderSlotList = iccReaderSlotList; 048 this.magReaderCombined = magReaderCombined; 049 this.pinpadPortsNum = pinpadPortsNum; 050 this.pinpadPorts = pinpadPorts; 051 this.platformId = platformId; 052 this.printerMaxDotLine = printerMaxDotLine; 053 this.printerMaxPageWidth = printerMaxPageWidth; 054 this.printerStep = printerStep; 055 this.printerType = printerType; 056 this.RS232Ports = RS232Ports; 057 this.RS232PortsNum = RS232PortsNum; 058 this.usbDevPort = usbDevPort; 059 this.usbHostPort = usbHostPort; 060 this.usbHostPortExt = usbHostPortExt; 061 this.reserved = reserved; 062 } 063 064 /** 065 * <div class="zh">获取BLE版本。</div> 066 * <div class="en">Get the BLE version.</div> 067 * 068 * @return 069 */ 070 public byte[] getBLEVersion() { 071 return BLEVersion; 072 } 073 074 /** 075 * <div class="zh">获取设备类型。</div> 076 * <div class="en">Gets the device type.</div> 077 * 078 * @return 079 */ 080 public String getDeviceType() { 081 return deviceType; 082 } 083 084 085 /** 086 * <div class="zh">获取IC卡槽数。</div> 087 * <div class="en">Get the number of IC card slots.</div> 088 * 089 * @return 090 */ 091 public byte getIccReadSlotNum() { 092 return iccReadSlotNum; 093 } 094 095 /** 096 * <div class="zh">获取具体IC卡槽号列表。</div> 097 * <div class="en">Gets a list of specific IC card slot numbers.</div> 098 * 099 * @return 100 */ 101 public byte[] getIccReaderSlotList() { 102 return iccReaderSlotList; 103 } 104 105 /** 106 * <div class="zh">获取是否是组合磁条卡。</div> 107 * <div class="en"></div> 108 * 109 * @return 110 */ 111 public byte getMagReaderCombined() { 112 return magReaderCombined; 113 } 114 115 /** 116 * <div class="zh">获取密码键盘端口数量。</div> 117 * <div class="en">Gets the number of PINPAD ports.</div> 118 * 119 * @return 120 */ 121 public byte getPinpadPortsNum() { 122 return pinpadPortsNum; 123 } 124 125 /** 126 * <div class="zh">获取密码键盘端口的具体位置。</div> 127 * <div class="en">Gets the exact location of the PINPAD port.</div> 128 * 129 * @return 130 */ 131 public byte[] getPinpadPorts() { 132 return pinpadPorts; 133 } 134 135 /** 136 * <div class="zh">获取平台ID。</div> 137 * <div class="en">Get the platform ID.</div> 138 * 139 * @return 140 */ 141 public String getPlatformId() { 142 return platformId; 143 } 144 145 /** 146 * <div class="zh">获取打印机支持打印的最大点行。</div> 147 * <div class="en">Gets the maximum point line that the printer supports printing.</div> 148 * 149 * @return 150 */ 151 public short getPrinterMaxDotLine() { 152 return printerMaxDotLine; 153 } 154 155 /** 156 * <div class="zh">获取打印机支持打印的最大宽度。</div> 157 * <div class="en">Gets the maximum width the printer supports printing.</div> 158 * 159 * @return 160 */ 161 public short getPrinterMaxPageWidth() { 162 return printerMaxPageWidth; 163 } 164 165 /** 166 * <div class="zh">获取打印结束后建议的走纸步数。</div> 167 * <div class="en">Gets the recommended number of paper steps at the end of printing.</div> 168 * 169 * @return 170 */ 171 public short getPrinterStep() { 172 return printerStep; 173 } 174 175 /** 176 * <div class="zh">获取打印机类型。0:针式打印机; 1:热敏打印机。</div> 177 * <div class="en">Gets the printer type.0: Needle printer;1: Thermal printer.</div> 178 * 179 * @return 180 */ 181 public byte getPrinterType() { 182 return printerType; 183 } 184 185 /** 186 * <div class="zh">获取RS232口具体位置。</div> 187 * <div class="en">Get the specific location of RS232 port.</div> 188 * 189 * @return 190 */ 191 public byte[] getRS232Ports() { 192 return RS232Ports; 193 } 194 195 /** 196 * <div class="zh">获取RS232口的数量。</div> 197 * <div class="en">Get the number of RS232 ports.</div> 198 * 199 * @return 200 */ 201 public byte getRS232PortsNum() { 202 return RS232PortsNum; 203 } 204 205 /** 206 * <div class="zh">获取UsbDev端口号。</div> 207 * <div class="en">Gets the UsbDev port number.</div> 208 * 209 * @return 210 */ 211 public byte getUsbDevPort() { 212 return usbDevPort; 213 } 214 215 /** 216 * <div class="zh">获取UsbHost端口号。</div> 217 * <div class="en">Gets the UsbHost port number.</div> 218 * 219 * @return 220 */ 221 public byte getUsbHostPort() { 222 return usbHostPort; 223 } 224 225 /** 226 * <div class="zh">获取UsbHost扩展端口号。</div> 227 * <div class="en">Gets the UsbHost extension port number.</div> 228 * 229 * @return 230 */ 231 public byte[] getUsbHostPortExt() { 232 return usbHostPortExt; 233 } 234 235 /** 236 * <div class="zh">保留字段。</div> 237 * <div class="en">The Reserved.</div> 238 * 239 * @return 240 */ 241 public byte[] getReserved() { 242 return reserved; 243 } 244}