| 28 | namespace hueplusplus |
| 29 | { |
| 30 | std::string alertToString(Alert alert) |
| 31 | { |
| 32 | switch (alert) |
| 33 | { |
| 34 | case Alert::lselect: |
| 35 | return "lselect"; |
| 36 | case Alert::select: |
| 37 | return "select"; |
| 38 | break; |
| 39 | default: |
| 40 | return "none"; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | Alert alertFromString(const std::string& s) |
| 45 | { |