Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2698271
third_party_membership.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
third_party_membership.cpp
View Options
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#include
<algorithm>
#include
"third_party_membership.hpp"
namespace
Kazv
::
Api
{
BaseJob
::
Query
InviteBy3PIDJob::buildQuery
(
)
{
BaseJob
::
Query
_q
;
return
_q
;
}
BaseJob
::
Body
InviteBy3PIDJob::buildBody
(
std
::
string
roomId
,
std
::
string
idServer
,
std
::
string
idAccessToken
,
std
::
string
medium
,
std
::
string
address
)
{
// ignore unused param
(
void
)(
roomId
);(
void
)(
idServer
);(
void
)(
idAccessToken
);(
void
)(
medium
);(
void
)(
address
);
json
_data
;
_data
[
"id_server"
s
]
=
idServer
;
_data
[
"id_access_token"
s
]
=
idAccessToken
;
_data
[
"medium"
s
]
=
medium
;
_data
[
"address"
s
]
=
address
;
return
BaseJob
::
JsonBody
(
_data
);
};
InviteBy3PIDJob
::
InviteBy3PIDJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
roomId
,
std
::
string
idServer
,
std
::
string
idAccessToken
,
std
::
string
medium
,
std
::
string
address
)
:
BaseJob
(
std
::
move
(
serverUrl
),
std
::
string
(
"/_matrix/client/r0"
)
+
"/rooms/"
+
roomId
+
"/invite"
,
POST
,
std
::
string
(
"InviteBy3PID"
),
_accessToken
,
ReturnType
::
Json
,
buildBody
(
roomId
,
idServer
,
idAccessToken
,
medium
,
address
)
,
buildQuery
()
,
{}
)
{
}
InviteBy3PIDJob
InviteBy3PIDJob
::
withData
(
JsonWrap
j
)
&&
{
auto
ret
=
InviteBy3PIDJob
(
std
::
move
(
*
this
));
ret
.
attachData
(
j
);
return
ret
;
}
InviteBy3PIDJob
InviteBy3PIDJob
::
withData
(
JsonWrap
j
)
const
&
{
auto
ret
=
InviteBy3PIDJob
(
*
this
);
ret
.
attachData
(
j
);
return
ret
;
}
InviteBy3PIDJob
::
JobResponse
::
JobResponse
(
Response
r
)
:
Response
(
std
::
move
(
r
))
{}
bool
InviteBy3PIDResponse
::
success
()
const
{
return
Response
::
success
()
&&
isBodyJson
(
body
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Jul 18, 8:19 AM (18 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
255724
Default Alt Text
third_party_membership.cpp (2 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment