def _handleCondition(self, name, data, uniqueName, group): if name == 'token': return conditions.Token(uniqueName, data) if name == 'premium': return conditions.PremiumAccount(uniqueName, data) if name == 'premiumPlus': return conditions.PremiumPlusAccount(uniqueName, data) if name == 'inClan': return conditions.InClan(uniqueName, data) if name == 'igrType': self._hasIgrCondition = True return conditions.IGR(uniqueName, data) if name == 'GR': return conditions.GlobalRating(uniqueName, data) if name == 'dossier': return conditions.AccountDossierValue(uniqueName, data) if name == 'vehiclesUnlocked': return conditions.VehiclesUnlocked(uniqueName, data) return conditions.VehiclesOwned( uniqueName, data) if name == 'vehiclesOwned' else None
def _handleCondition(self, name, data, uniqueName, group): if name == 'token': return conditions.Token(uniqueName, data) if name == 'premium': return conditions.PremiumAccount(uniqueName, data) if name == 'inClan': return conditions.InClan(uniqueName, data) if name == 'igrType': self._hasIgrCondition = True return conditions.IGR(uniqueName, data) if name == 'GR': return conditions.GlobalRating(uniqueName, data) if name == 'dossier': return conditions.AccountDossierValue(uniqueName, data) if name == 'vehiclesUnlocked': return conditions.VehiclesUnlocked(uniqueName, data) if name == 'vehiclesOwned': return conditions.VehiclesOwned(uniqueName, data) if name == 'refSystemRalXPPool': return conditions.RefSystemRalXPPoolCondition(uniqueName, data) if name == 'refSystemRalBought10Lvl': return conditions.RefSystemRalBought10Lvl(uniqueName, data)