libkazv
send.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of libkazv.
3  * SPDX-FileCopyrightText: 2020 Tusooa Zhu <tusooa@kazv.moe>
4  * SPDX-License-Identifier: AGPL-3.0-or-later
5  */
6 
7 #pragma once
8 #include <libkazv-config.hpp>
9 
10 #include <csapi/room_send.hpp>
11 #include <csapi/to_device.hpp>
12 #include <csapi/redaction.hpp>
13 
14 #include "client-model.hpp"
15 
16 namespace Kazv
17 {
18  ClientResult updateClient(ClientModel m, SendMessageAction a);
20 
21  ClientResult updateClient(ClientModel m, SendToDeviceMessageAction a);
22  ClientResult updateClient(ClientModel m, SendMultipleToDeviceMessagesAction a);
24 
25  ClientResult updateClient(ClientModel m, SaveLocalEchoAction a);
26 
27  ClientResult updateClient(ClientModel m, UpdateLocalEchoStatusAction a);
28 
29  ClientResult updateClient(ClientModel m, RedactEventAction a);
31 }
SendToDeviceJob::JobResponse SendToDeviceResponse
Definition: to_device.hpp:72
RedactEventJob::JobResponse RedactEventResponse
Definition: redaction.hpp:89
SendMessageJob::JobResponse SendMessageResponse
Definition: room_send.hpp:92
Definition: location.hpp:10
ClientResult updateClient(ClientModel m, SetAccountDataPerRoomAction a)
Definition: account-data.cpp:15
std::pair< ClientModel, ClientEffect > ClientResult
Definition: clientfwd.hpp:149
ClientResult processResponse(ClientModel m, SetAccountDataPerRoomResponse r)
Definition: account-data.cpp:23