Page MenuHomePhorge

room_send.hpp
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

room_send.hpp

/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#pragma once
#include "basejob.hpp"
namespace Kazv {
/*! \brief Send a message event to the given room.
*
* This endpoint is used to send a message event to a room. Message events
* allow access to historical events and pagination, making them suited
* for "once-off" activity in a room.
*
* The body of the request should be the content object of the event; the
* fields in this object will vary depending on the type of event. See
* `Room Events`_ for the m. event specification.
*/
class SendMessageJob : public BaseJob {
public:
static constexpr auto needsAuth() {
return true
;
}
// Construction/destruction
/*! \brief Send a message event to the given room.
*
* \param roomId
* The room to send the event to.
*
* \param eventType
* The type of event to send.
*
* \param txnId
* The transaction ID for this event. Clients should generate an
* ID unique across requests with the same access token; it will be
* used by the server to ensure idempotency of requests.
*
* \param body
* This endpoint is used to send a message event to a room. Message events
* allow access to historical events and pagination, making them suited
* for "once-off" activity in a room.
*
* The body of the request should be the content object of the event; the
* fields in this object will vary depending on the type of event. See
* `Room Events`_ for the m. event specification.
*/
explicit SendMessageJob(std::string serverUrl
, std::string _accessToken
,
std::string roomId , std::string eventType , std::string txnId , JsonWrap body = {});
// Result properties
/// A unique identifier for the event.
static std::string eventId(Response r);
static BaseJob::Query buildQuery(
);
static BaseJob::Body buildBody(std::string roomId, std::string eventType, std::string txnId, JsonWrap body);
static bool success(Response r);
};
}
namespace nlohmann
{
using namespace Kazv;
}
namespace Kazv
{
} // namespace Kazv

File Metadata

Mime Type
text/x-c++
Expires
Thu, Oct 2, 3:03 AM (13 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
482110
Default Alt Text
room_send.hpp (2 KB)

Event Timeline