#pragma once /// @file /// @brief A widget in account data or a room #include #if __has_include() #include #else #include #endif namespace mtx { namespace events { namespace state { //! Content of the `m.widget` event. /// /// https://github.com/matrix-org/matrix-doc/issues/1236 struct Widget { //! Required. The type of widget. This is used to determine which widgets can be grouped //! together on the UI (e.g multiple grafana graphs together). std::string type; //! Required. The URL of the widget. All widget-enabled matrix clients need to transform this //! URL into a final URL which they will perform an HTTP GET to. All substituted values are //! url-encoded. std::string url; //! Optional. A human-readable string which can be displayed instead of, or in addition to, the //! embedded `