- bool UserPredicate(USER_PTR userPtr) const
- { return userPtr->GetProperty().nextTariff.ConstData().empty(); }
+ bool UserPredicate(STG::User* userPtr) const override
+ { return !userPtr->GetProperties().nextTariff.ConstData().empty(); }
+};
+
+class ActiveUsersSensor : public UsersSensor {
+ public:
+ explicit ActiveUsersSensor(STG::Users & u) : UsersSensor(u) {}
+
+ private:
+ bool UserPredicate(STG::User* userPtr) const override;