рефакторинг запроса версий компонент. сделал одной командой

This commit is contained in:
2025-02-03 20:31:34 +03:00
parent 46f44f48b7
commit aefbd50612
9 changed files with 88 additions and 44 deletions

View File

@@ -10,7 +10,7 @@ public enum ServerCode {
//-
GetComponentsBackups,
//-
UpdateBugReportField,
UpdateBugReportField,//todo выкинуть после обновления.
UpdateBugReport,
AppendBugReportTextField,
//-
@@ -46,8 +46,9 @@ public enum ServerCode {
ReceiveComponent,
ReceiveBugReport,
SendBugReport,
GetComponentsVersions,
GetComponentsMinimalVersions,
GetComponentsVersions, //todo удалить устарел
GetComponentsMinimalVersions, //todo удалить устарел
GetComponentsVersionsInfo,
GetComponentChangesLog,
//--
CheckURLRegistered,
@@ -89,6 +90,14 @@ public enum ServerCode {
GetSapforForCompilation,
GetMaxSapforVersion,
PerformAutoSapforTesting,
Email_new
;
Email_new;
public String getDescription(){
switch (this){
case GetComponentsVersionsInfo:
return "Получить версии компонент";
default:
return this.toString();
}
}
}