56 std::string roomId , std::string eventId , std::optional<int> score = std::nullopt, std::optional<std::string> reason = std::nullopt
Definition: report_content.hpp:23
bool success() const
Definition: report_content.cpp:78
JobResponse(Response r)
Definition: report_content.cpp:75
Reports an event as inappropriate.
Definition: report_content.hpp:17
static BaseJob::Query buildQuery()
Definition: report_content.cpp:13
static BaseJob::Body buildBody(std::string roomId, std::string eventId, std::optional< int > score, std::optional< std::string > reason)
Definition: report_content.cpp:21
ReportContentJob withData(JsonWrap j) &&
Definition: report_content.cpp:61
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:41
static constexpr auto needsAuth()
Definition: report_content.hpp:30