Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2578501
read_markers.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
read_markers.cpp
View Options
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#include
<algorithm>
#include
"read_markers.hpp"
namespace
Kazv
{
BaseJob
::
Query
SetReadMarkerJob::buildQuery
(
)
{
BaseJob
::
Query
_q
;
return
_q
;
}
BaseJob
::
Body
SetReadMarkerJob::buildBody
(
std
::
string
roomId
,
std
::
string
mFullyRead
,
std
::
string
mRead
)
{
// ignore unused param
(
void
)(
roomId
);(
void
)(
mFullyRead
);(
void
)(
mRead
);
json
_data
;
_data
[
"m.fully_read"
s
]
=
mFullyRead
;
addToJsonIfNeeded
(
_data
,
"m.read"
s
,
mRead
);
return
BaseJob
::
JsonBody
(
_data
);
};
SetReadMarkerJob
::
SetReadMarkerJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
roomId
,
std
::
string
mFullyRead
,
std
::
string
mRead
)
:
BaseJob
(
std
::
move
(
serverUrl
),
std
::
string
(
"/_matrix/client/r0"
)
+
"/rooms/"
+
roomId
+
"/read_markers"
,
POST
,
_accessToken
,
ReturnType
::
Json
,
buildBody
(
roomId
,
mFullyRead
,
mRead
)
,
buildQuery
()
)
{
}
bool
SetReadMarkerJob
::
success
(
Response
r
)
{
return
BaseJob
::
success
(
r
)
&&
isBodyJson
(
r
.
body
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, Jun 25, 6:26 AM (10 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
235147
Default Alt Text
read_markers.cpp (1 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment