Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2577576
receipts.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
receipts.cpp
View Options
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#include
<algorithm>
#include
"receipts.hpp"
namespace
Kazv
::
Api
{
BaseJob
::
Query
PostReceiptJob::buildQuery
(
)
{
BaseJob
::
Query
_q
;
return
_q
;
}
BaseJob
::
Body
PostReceiptJob::buildBody
(
std
::
string
roomId
,
std
::
string
receiptType
,
std
::
string
eventId
,
JsonWrap
receipt
)
{
// ignore unused param
(
void
)(
roomId
);(
void
)(
receiptType
);(
void
)(
eventId
);(
void
)(
receipt
);
return
JsonBody
(
receipt
);
};
PostReceiptJob
::
PostReceiptJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
roomId
,
std
::
string
receiptType
,
std
::
string
eventId
,
JsonWrap
receipt
)
:
BaseJob
(
std
::
move
(
serverUrl
),
std
::
string
(
"/_matrix/client/v3"
)
+
"/rooms/"
+
roomId
+
"/receipt/"
+
receiptType
+
"/"
+
eventId
,
POST
,
std
::
string
(
"PostReceipt"
),
_accessToken
,
ReturnType
::
Json
,
buildBody
(
roomId
,
receiptType
,
eventId
,
receipt
)
,
buildQuery
()
,
{}
)
{
}
PostReceiptJob
PostReceiptJob
::
withData
(
JsonWrap
j
)
&&
{
auto
ret
=
PostReceiptJob
(
std
::
move
(
*
this
));
ret
.
attachData
(
j
);
return
ret
;
}
PostReceiptJob
PostReceiptJob
::
withData
(
JsonWrap
j
)
const
&
{
auto
ret
=
PostReceiptJob
(
*
this
);
ret
.
attachData
(
j
);
return
ret
;
}
PostReceiptJob
::
JobResponse
::
JobResponse
(
Response
r
)
:
Response
(
std
::
move
(
r
))
{}
bool
PostReceiptResponse
::
success
()
const
{
return
Response
::
success
()
&&
isBodyJson
(
body
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Jun 24, 9:46 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
234816
Default Alt Text
receipts.cpp (1 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment