[640][adas] MogoReport更新到420

This commit is contained in:
xinfengkun
2024-04-07 16:18:12 +08:00
parent 291b73a336
commit 152d3a9d89
4 changed files with 547 additions and 356 deletions

View File

@@ -1,7 +1,9 @@
package com.zhjt.mogo.adas.data.bean;
public class ReportCodeInfo {
public final String code;
import android.text.TextUtils;
public class ReportInfo {
public final String name;
/**
* 开始支持的版本包含
*/
@@ -12,17 +14,14 @@ public class ReportCodeInfo {
*/
public final String deprecatedVersion;
public ReportCodeInfo(String code, String sinceVersion, String deprecatedVersion) {
this.code = code;
public ReportInfo(String name, String sinceVersion, String deprecatedVersion) {
this.name = name;
this.sinceVersion = sinceVersion;
this.deprecatedVersion = deprecatedVersion;
}
@Override
public String toString() {
return code +
" sinceVersion='" + sinceVersion + '\'' +
", deprecatedVersion='" + deprecatedVersion + '\'' +
'}';
return name + " 开始支持版本(包含)=" + sinceVersion + (TextUtils.isEmpty(deprecatedVersion) ? "" : ", 弃用版本(不包含)='" + deprecatedVersion);
}
}

View File

@@ -7,13 +7,13 @@ import java.lang.annotation.Target;
/**
* MAP系统消息报告版本管理
* 主要用于标记新增Code的版本以及标记弃用的的Code
* 主要用于标记新增ResultActionCode的版本以及标记弃用的ResultActionCode
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface CodeInfo {
String value();//Code新增版本
public @interface ReportState {
String value();//新增版本
String deprecated() default "";//Code弃用版本
String deprecated() default "";//弃用版本
}