8 namespace media_player {
13 void play(Ts...
x)
override { this->
parent_->make_call().set_command(Command).perform(); }
16 template<
typename... Ts>
18 template<
typename... Ts>
20 template<
typename... Ts>
22 template<
typename... Ts>
24 template<
typename... Ts>
26 template<
typename... Ts>
30 TEMPLATABLE_VALUE(std::string, media_url)
31 void play(Ts...
x)
override { this->
parent_->make_call().set_media_url(this->media_url_.value(
x...)).perform(); }
35 TEMPLATABLE_VALUE(
float, volume)
36 void play(Ts...
x)
override { this->
parent_->make_call().set_volume(this->volume_.value(
x...)).perform(); }
Base class for all automation conditions.
Implementation of SPI Controller mode.
Helper class to easily give an object a parent of type T.