Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7892469
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
::
Api
{
BaseJob
::
Query
SetReadMarkerJob::buildQuery
(
)
{
BaseJob
::
Query
_q
;
return
_q
;
}
BaseJob
::
Body
SetReadMarkerJob::buildBody
(
std
::
string
roomId
,
std
::
string
mFullyRead
,
std
::
optional
<
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
::
optional
<
std
::
string
>
mRead
)
:
BaseJob
(
std
::
move
(
serverUrl
),
std
::
string
(
"/_matrix/client/r0"
)
+
"/rooms/"
+
roomId
+
"/read_markers"
,
POST
,
std
::
string
(
"SetReadMarker"
),
_accessToken
,
ReturnType
::
Json
,
buildBody
(
roomId
,
mFullyRead
,
mRead
)
,
buildQuery
()
)
{
}
SetReadMarkerJob
SetReadMarkerJob
::
withData
(
JsonWrap
j
)
&&
{
auto
ret
=
SetReadMarkerJob
(
std
::
move
(
*
this
));
ret
.
attachData
(
j
);
return
ret
;
}
SetReadMarkerJob
SetReadMarkerJob
::
withData
(
JsonWrap
j
)
const
&
{
auto
ret
=
SetReadMarkerJob
(
*
this
);
ret
.
attachData
(
j
);
return
ret
;
}
SetReadMarkerJob
::
JobResponse
::
JobResponse
(
Response
r
)
:
Response
(
std
::
move
(
r
))
{}
bool
SetReadMarkerResponse
::
success
()
const
{
return
Response
::
success
()
&&
isBodyJson
(
body
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Oct 2, 4:26 AM (18 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
484696
Default Alt Text
read_markers.cpp (1 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment