1 /* 2 * Copyright (c) 2025 Shenzhen Kaihong Digital. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 package parse; 17 18 /** 19 * <h3>类名:该类用于xxx</h3> 20 * description info of parser 21 * 22 * @author Administrator 23 * date 2025-02-28 24 * @version 1.0 25 * @since 2025-02-28 26 */ 27 public class ParseTaskInfo { 28 private String status; 29 private String message; 30 private int lanType; 31 private int parseType; 32 private String jsonData; 33 private int progress; 34 private int total; 35 36 /** 37 * 构造函数 38 */ ParseTaskInfo()39 public ParseTaskInfo() {} 40 41 /** 42 * 有参数构造函数 43 * 44 * @param vs 状态 45 * @param vm 内容 46 * @param vp 进度 47 * @param vt 总数 48 */ ParseTaskInfo(String vs, String vm, int vp, int vt)49 public ParseTaskInfo(String vs, String vm, int vp, int vt) { 50 this.status = vs; 51 this.message = vm; 52 this.progress = vp; 53 this.total = vt; 54 } 55 ParseTaskInfo(String vs, String vm, int ct, String jd)56 public ParseTaskInfo(String vs, String vm, int ct, String jd) { 57 this.status = vs; 58 this.message = vm; 59 this.lanType = ct; 60 this.jsonData = jd; 61 } 62 63 /** 64 * 设置状态 65 * 66 * @param vs 状态 67 */ setStatus(String vs)68 public void setStatus(String vs) { 69 status = vs; 70 } 71 72 /** 73 * 读取状态 74 * 75 * @return 状态 76 */ getStatus()77 public String getStatus() { 78 return status; 79 } 80 81 /** 82 * 设置消息 83 * 84 * @param vm 消息 85 */ setMessage(String vm)86 public void setMessage(String vm) { 87 message = vm; 88 } 89 90 /** 91 * 读取消息 92 * 93 * @return 消息 94 */ getMessage()95 public String getMessage() { 96 return message; 97 } 98 99 /** 100 * 获取解析类型 101 * 102 * @return 解析类型 103 */ getLanType()104 public int getLanType() { 105 return lanType; 106 } 107 108 /** 109 * 设置 解析类型 110 * 111 * @param lanType 解析类型 112 */ setLanType(int lanType)113 public void setLanType(int lanType) { 114 this.lanType = lanType; 115 } 116 117 /** 118 * 获取 json data 119 * 120 * @return jsonData 解析数据 121 */ getJsonData()122 public String getJsonData() { 123 return jsonData; 124 } 125 126 /** 127 * 设置 json data 128 * 129 * @param jsonData 解析数据 130 */ setJsonData(String jsonData)131 public void setJsonData(String jsonData) { 132 this.jsonData = jsonData; 133 } 134 135 /** 136 * 设置进度 137 * 138 * @param vp 进度 139 */ setProgress(int vp)140 public void setProgress(int vp) { 141 progress = vp; 142 } 143 144 /** 145 * 读取进度 146 * 147 * @return 进度 148 */ getProgress()149 public int getProgress() { 150 return progress; 151 } 152 153 /** 154 * 设置总数 155 * 156 * @param vt 总数 157 */ setTotal(int vt)158 public void setTotal(int vt) { 159 total = vt; 160 } 161 162 /** 163 * 读取总数 164 * 165 * @return 总数 166 */ getTotal()167 public int getTotal() { 168 return total; 169 } 170 171 /** 172 * 读取解析类型 173 * 174 * @return 解析类型 175 */ getParseType()176 public int getParseType() { 177 return parseType; 178 } 179 180 /** 181 * 读取解析类型 182 * 183 * @param parseType 解析类型 184 */ setParseType(int parseType)185 public void setParseType(int parseType) { 186 this.parseType = parseType; 187 } 188 } 189