mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
refactor: modify response json
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user