refactor: modify response json

This commit is contained in:
albexk
2024-11-08 11:12:56 +03:00
committed by NickVs2015
parent fb524a1bab
commit bea29f62c7
5 changed files with 32 additions and 31 deletions
+7 -6
View File
@@ -115,12 +115,13 @@ namespace amnezia
AbortError = 1205,
// Billing errors
BillingError = 1300,
BillingGooglePlayError = 1301,
BillingUnavailable = 1302,
SubscriptionAlreadyOwned = 1303,
SubscriptionUnavailable = 1304,
BillingNetworkError = 1305,
BillingCanceled = 1300,
BillingError = 1301,
BillingGooglePlayError = 1302,
BillingUnavailable = 1303,
SubscriptionAlreadyOwned = 1304,
SubscriptionUnavailable = 1305,
BillingNetworkError = 1306,
};
Q_ENUM_NS(ErrorCode)
}
+1
View File
@@ -107,6 +107,7 @@ QString errorString(ErrorCode code) {
case(ErrorCode::AbortError): errorMessage = QObject::tr("QFile error: The operation was aborted"); break;
// Billing errors
case(ErrorCode::BillingCanceled): errorMessage = QObject::tr("Transaction was canceled by the user"); break;
case(ErrorCode::BillingError): errorMessage = QObject::tr("Billing error"); break;
case(ErrorCode::BillingGooglePlayError): errorMessage = QObject::tr("Internal Google Play error, please try again later"); break;
case(ErrorCode::BillingUnavailable): errorMessage = QObject::tr("Billing is unavailable, please try again later"); break;