#ifndef SERVERCONFIGUTILS_H #define SERVERCONFIGUTILS_H #include namespace serverConfigUtils { enum ConfigType { AmneziaFreeV2 = 0, AmneziaFreeV3, AmneziaPremiumV1, AmneziaPremiumV2, SelfHosted, ExternalPremium, SelfHostedAdmin = 8, SelfHostedUser, Native, Invalid }; enum ConfigSource { Telegram = 1, AmneziaGateway }; bool isServerFromApi(const QJsonObject &serverConfigObject); ConfigSource getConfigSource(const QJsonObject &serverConfigObject); ConfigType configTypeFromJson(const QJsonObject &serverConfigObject); bool isLegacyApiSubscription(ConfigType configType); bool isApiV2Subscription(ConfigType configType); } // namespace serverConfigUtils #endif // SERVERCONFIGUTILS_H