libkazv
report_content.hpp
Go to the documentation of this file.
1 /******************************************************************************
2  * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3  */
4 
5 #pragma once
6 
7 #include "basejob.hpp"
8 
9 
10 namespace Kazv::Api {
11 
17 class ReportContentJob : public BaseJob {
18 public:
19 
20 
21 
22 class JobResponse : public Response
23 {
24 
25 public:
27  bool success() const;
28 
29 };
30  static constexpr auto needsAuth() {
31  return true
32  ;
33  }
34 
35 
36 // Construction/destruction
37 
53  explicit ReportContentJob(std::string serverUrl
54  , std::string _accessToken
55  ,
56  std::string roomId , std::string eventId , std::optional<int> score = std::nullopt, std::optional<std::string> reason = std::nullopt
57  );
58 
59 
61  );
62 
63  static BaseJob::Body buildBody(std::string roomId, std::string eventId, std::optional<int> score, std::optional<std::string> reason);
64 
65 
66 
67 
68 
71  };
73  }
74  namespace nlohmann
75  {
76  using namespace Kazv;
77  using namespace Kazv::Api;
78 
79  }
80 
81  namespace Kazv::Api
82  {
83 
84 } // namespace Kazv::Api
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
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
Definition: location.hpp:27
Definition: basejob.hpp:50