Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7892699
report_content.cpp
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.cpp
View Options
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#include
"report_content.hpp"
namespace
Kazv
{
BaseJob
::
Body
ReportContentJob::buildBody
(
std
::
string
roomId
,
std
::
string
eventId
,
int
score
,
std
::
string
reason
)
{
// ignore unused param
(
void
)(
roomId
);(
void
)(
eventId
);(
void
)(
score
);(
void
)(
reason
);
json
_data
;
_data
[
"score"
s
]
=
score
;
_data
[
"reason"
s
]
=
reason
;
return
BaseJob
::
JsonBody
(
_data
);
};
ReportContentJob
::
ReportContentJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
roomId
,
std
::
string
eventId
,
int
score
,
std
::
string
reason
)
:
BaseJob
(
std
::
move
(
serverUrl
),
std
::
string
(
"/_matrix/client/r0"
)
+
"/rooms/"
+
roomId
+
"/report/"
+
eventId
,
POST
,
_accessToken
,
ReturnType
::
Json
,
buildBody
(
roomId
,
eventId
,
score
,
reason
)
)
{
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Thu, Oct 2, 4:36 AM (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
487294
Default Alt Text
report_content.cpp (1 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment