| 470 | } |
| 471 | |
| 472 | bool ChatMessageProperty::IsReusable() const |
| 473 | { |
| 474 | auto it = std::find_if(_supportedProperties.begin(), |
| 475 | _supportedProperties.end(), |
| 476 | [this](const PropertyInfo &pi) { |
| 477 | return std::string(pi._id) == _id; |
| 478 | }); |
| 479 | if (it == _supportedProperties.end()) { |
| 480 | return false; |
| 481 | } |
| 482 | |
| 483 | return it->_isReusable; |
| 484 | } |
| 485 | |
| 486 | void ChatMessagePattern::Save(obs_data_t *obj) const |
| 487 | { |
no test coverage detected