libkazv
states.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/rooms.hpp>
11 #include <csapi/room_state.hpp>
12 
13 #include "client-model.hpp"
14 
15 namespace Kazv
16 {
17  BaseJob clientPerform(ClientModel m, GetRoomStatesAction a);
18  ClientResult updateClient(ClientModel m, GetRoomStatesAction a);
20  ClientResult updateClient(ClientModel m, GetStateEventAction a);
22  ClientResult updateClient(ClientModel m, SendStateEventAction a);
24 }
GetRoomStateJob::JobResponse GetRoomStateResponse
Definition: rooms.hpp:223
SetRoomStateWithKeyJob::JobResponse SetRoomStateWithKeyResponse
Definition: room_state.hpp:111
GetRoomStateWithKeyJob::JobResponse GetRoomStateWithKeyResponse
Definition: rooms.hpp:149
Definition: location.hpp:10
std::optional< BaseJob > clientPerform(ClientModel m, QueryKeysAction a)
Definition: encryption.cpp:419
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