Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2577973
report_content.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
report_content.hpp
View Options
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#pragma once
#include
"basejob.hpp"
namespace
Kazv
{
/*! \brief Reports an event as inappropriate.
*
* Reports an event as inappropriate to the server, which may then notify
* the appropriate people.
*/
class
ReportContentJob
:
public
BaseJob
{
public
:
class
JobResponse
:
public
Response
{
public
:
JobResponse
(
Response
r
);
bool
success
()
const
;
};
static
constexpr
auto
needsAuth
()
{
return
true
;
}
// Construction/destruction
/*! \brief Reports an event as inappropriate.
*
* \param roomId
* The room in which the event being reported is located.
*
* \param eventId
* The event to report.
*
* \param score
* The score to rate this content as where -100 is most offensive
* and 0 is inoffensive.
*
* \param reason
* The reason the content is being reported. May be blank.
*/
explicit
ReportContentJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
roomId
,
std
::
string
eventId
,
int
score
,
std
::
string
reason
);
static
BaseJob
::
Query
buildQuery
(
);
static
BaseJob
::
Body
buildBody
(
std
::
string
roomId
,
std
::
string
eventId
,
int
score
,
std
::
string
reason
);
ReportContentJob
withData
(
JsonWrap
j
)
&&
;
ReportContentJob
withData
(
JsonWrap
j
)
const
&
;
};
using
ReportContentResponse
=
ReportContentJob
::
JobResponse
;
}
namespace
nlohmann
{
using
namespace
Kazv
;
}
namespace
Kazv
{
}
// namespace Kazv
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Jun 24, 5:57 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
234435
Default Alt Text
report_content.hpp (1 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment