001 002package com.pax.dal; 003 004import com.pax.dal.exceptions.WLAttackDevException; 005 /** 006 * <div class="zh">关于税控/电子印章触发相关的API。</div> 007 * <div class="en">Tax Control/Electronic Seal Attack API Documentation.</div> 008 * @since V4.11.00 009 */ 010public interface IWLAttack { 011 /** 012 * <div class="zh">税控mesh/电子印章触发广播 </div> 013 * <div class="en">Tax Control Mesh / Electronic Seal Attack Broadcast. </div> 014 * 015 * @return <div class="zh"> 0-没有触发; 2-税控模块触发; 8-电子印章触发; 10-同时触发;16-移除纽扣电池触发; other-保留。</div> 016 * <div class="en"> 0- No trigger; 2- Tax control module triggered; 8- Electronic seal trigger; 10- Trigger simultaneously; 16- Remove button battery trigger; other-reserved. </div> 017 * 018 * @throws WLAttackDevException 019 * 020 * @since V4.11.00 021 */ 022 int getAttackType()throws WLAttackDevException; 023 024 /** 025 * <div class="zh">获取触发时间 注意:如果没有触发event_data返回空值,否则返回最近一次触发时间。</div> 026 * <div class="en"> Get the trigger time Note: If event_data is not triggered, return a null value; otherwise, return the latest trigger time </div> 027 * 028 * @param eventType 029 * <div class="zh"> 030 * <ul> 031 * <li>0-AP_MESH_ATTACK</li> 032 * <li>1-AP_ELECTRONIC_SEAL</li> 033 * <li>2-移除纽扣电池触发</li> 034 * </ul> 035 * </div> <div class="en"> 036 * <ul> 037 * <li>0- Tax Control Mesh</li> 038 * <li>1- Electronic Seal</li> 039 * <li>2- Remove button battery trigger</li> 040 * </ul> 041 * </div> 042 * @return <div class="zh"> Format: yyyyMMddHHmmss(比如:"20130606173737" = Thu Jun 06 17:37:37 CST 2013) </div> 043 * <div class="en"> Format: yyyyMMddHHmmss(for example, "20130606173737" = Thu Jun 06 17:37:37 CST 2013). </div> 044 * 045 * @throws WLAttackDevException 046 * 047 * @since V4.11.00 048 */ 049 String getEventDate(int eventType)throws WLAttackDevException; 050 051 /** 052 * <div class="zh">清除触发事件。</div> <div class="en">Clear attack events. </div> 053 * 054 * @param eventType 055 * <div class="zh"> 056 * <ul> 057 * <li>0-AP_MESH_ATTACK</li> 058 * <li>1-AP_ELECTRONIC_SEAL</li> 059 * <li>注:eventType参数设置无效,均是清除所有触发事件</li> 060 * </ul> 061 * </div> <div class="en"> 062 * <ul> 063 * <li>0-AP_MESH_ATTACK</li> 064 * <li>1-AP_ELECTRONIC_SEAL</li> 065 * <li>Note: The eventType parameter is invalid. All triggered events are cleared</li> 066 * </ul> 067 * </div> 068 * 069 * @throws WLAttackDevException 070 * 071 * @since V4.11.00 072 */ 073 void clearEventDate(int eventType)throws WLAttackDevException; 074 075 /** 076 * <div class="zh">获取MH1701 monitor版本。</div> <div class="en">Retrieve the monitor version of MH1701. </div> 077 * 078 * @return <div class="zh">MH1701 monitor版本 </div> <div class="en">The monitor version of MH1701. </div> 079 * 080 * @throws WLAttackDevException 081 * 082 * @since V4.11.00 083 */ 084 String fiscalGetFwVer()throws WLAttackDevException; 085 086 /** 087 * <div class="zh">获取MH1701 boot版本。</div> <div class="en">Retrieve the boot version of MH1701. </div> 088 * 089 * @return <div class="zh"> MH1701 boot版本 </div> <div class="en">The boot version of MH1701. </div> 090 * 091 * @throws WLAttackDevException 092 * 093 * @since V4.11.00 094 */ 095 String fiscalGetBootVer()throws WLAttackDevException; 096 097}