Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2577171
inviting.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
inviting.cpp
View Options
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#include
<algorithm>
#include
"inviting.hpp"
namespace
Kazv
{
BaseJob
::
Query
InviteUserJob::buildQuery
(
)
{
BaseJob
::
Query
_q
;
return
_q
;
}
BaseJob
::
Body
InviteUserJob::buildBody
(
std
::
string
roomId
,
std
::
string
userId
)
{
// ignore unused param
(
void
)(
roomId
);(
void
)(
userId
);
json
_data
;
_data
[
"user_id"
s
]
=
userId
;
return
BaseJob
::
JsonBody
(
_data
);
};
InviteUserJob
::
InviteUserJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
roomId
,
std
::
string
userId
)
:
BaseJob
(
std
::
move
(
serverUrl
),
std
::
string
(
"/_matrix/client/r0"
)
+
"/rooms/"
+
roomId
+
"/invite"
,
POST
,
std
::
string
(
"InviteUser"
),
_accessToken
,
ReturnType
::
Json
,
buildBody
(
roomId
,
userId
)
,
buildQuery
()
)
{
}
InviteUserJob
InviteUserJob
::
withData
(
JsonWrap
j
)
&&
{
auto
ret
=
InviteUserJob
(
std
::
move
(
*
this
));
ret
.
attachData
(
j
);
return
ret
;
}
InviteUserJob
InviteUserJob
::
withData
(
JsonWrap
j
)
const
&
{
auto
ret
=
InviteUserJob
(
*
this
);
ret
.
attachData
(
j
);
return
ret
;
}
InviteUserJob
::
JobResponse
::
JobResponse
(
Response
r
)
:
Response
(
std
::
move
(
r
))
{}
bool
InviteUserResponse
::
success
()
const
{
return
Response
::
success
()
&&
isBodyJson
(
body
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Jun 24, 3:25 AM (38 m, 55 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
234653
Default Alt Text
inviting.cpp (1 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment