static BaseJob::Query buildQuery()
Definition: report_content.cpp:15
static constexpr auto needsAuth()
Definition: report_content.hpp:34
ReportContentJob withData(JsonWrap j) &&
Definition: report_content.cpp:63
Reports an event as inappropriate.
Definition: report_content.hpp:19
Definition: report_content.hpp:26
ReportContentJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string eventId, std::optional< int > score=std::nullopt, std::optional< std::string > reason=std::nullopt)
Reports an event as inappropriate.
Definition: report_content.cpp:43
JobResponse(Response r)
Definition: report_content.cpp:77
static BaseJob::Body buildBody(std::string roomId, std::string eventId, std::optional< int > score, std::optional< std::string > reason)
Definition: report_content.cpp:23
bool success() const
Definition: report_content.cpp:80