libkazv
auth.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of libkazv.
3  * SPDX-FileCopyrightText: 2020-2022 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/login.hpp>
11 #include <csapi/wellknown.hpp>
12 #include <csapi/versions.hpp>
13 #include <csapi/logout.hpp>
14 
15 #include "client-model.hpp"
16 
17 namespace Kazv
18 {
19  ClientResult updateClient(ClientModel m, LoginAction a);
20  ClientResult updateClient(ClientModel m, TokenLoginAction a);
21  ClientResult processResponse(ClientModel m, LoginResponse r);
22  ClientResult updateClient(ClientModel m, LogoutAction a);
23 
24  ClientResult updateClient(ClientModel m, HardLogoutAction a);
26 
27  ClientResult updateClient(ClientModel m, GetWellknownAction a);
29 
30  ClientResult updateClient(ClientModel m, GetVersionsAction a);
32 }
LoginJob::JobResponse LoginResponse
Definition: login.hpp:252
GetVersionsJob::JobResponse GetVersionsResponse
Definition: versions.hpp:88
GetWellknownJob::JobResponse GetWellknownResponse
Definition: wellknown.hpp:77
LogoutJob::JobResponse LogoutResponse
Definition: logout.hpp:59
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