Format Fixes

Fix to pass tests
This commit is contained in:
rwrozelle 2024-08-31 14:53:40 -04:00
parent 3428340808
commit d254c6b306
2 changed files with 3 additions and 3 deletions

View file

@ -88,12 +88,12 @@ template<typename... Ts> class IsAnnouncingCondition : public Condition<Ts...>,
bool check(Ts... x) override { return this->parent_->state == MediaPlayerState::MEDIA_PLAYER_STATE_ANNOUNCING; }
};
template<typename... Ts> class isOnCondition : public Condition<Ts...>, public Parented<MediaPlayer> {
template<typename... Ts> class IsOnCondition : public Condition<Ts...>, public Parented<MediaPlayer> {
public:
bool check(Ts... x) override { return this->parent_->state == MediaPlayerState::MEDIA_PLAYER_STATE_ON; }
};
template<typename... Ts> class isOffCondition : public Condition<Ts...>, public Parented<MediaPlayer> {
template<typename... Ts> class IsOffCondition : public Condition<Ts...>, public Parented<MediaPlayer> {
public:
bool check(Ts... x) override { return this->parent_->state == MediaPlayerState::MEDIA_PLAYER_STATE_OFF; }
};

View file

@ -86,7 +86,7 @@ class MediaPlayerTraits {
bool get_supports_pause() const { return this->supports_pause_; }
std::vector<MediaPlayerSupportedFormat> &get_supported_formats() { return this->supported_formats_; }
void set_supports_next_previous_track(bool supports_next_previous_track) {
this->supports_next_previous_track_ = supports_next_previous_track;
}