libkazv
content.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 
8 #pragma once
9 #include <libkazv-config.hpp>
10 
11 #include "client-model.hpp"
12 
13 #include "csapi/content-repo.hpp"
14 
15 namespace Kazv
16 {
17  std::pair<std::string, std::string> mxcUriToMediaDesc(std::string mxcUri);
18 
19  ClientResult updateClient(ClientModel m, UploadContentAction a);
21 
22  ClientResult updateClient(ClientModel m, DownloadContentAction a);
24 
25  ClientResult updateClient(ClientModel m, DownloadThumbnailAction a);
27 }
content-repo.hpp
Kazv::Api::GetContentResponse
GetContentJob::JobResponse GetContentResponse
Definition: content-repo.hpp:174
Kazv::Api::UploadContentResponse
UploadContentJob::JobResponse UploadContentResponse
Definition: content-repo.hpp:76
Kazv::updateClient
ClientResult updateClient(ClientModel m, SetAccountDataPerRoomAction a)
Definition: account-data.cpp:15
Kazv
Definition: location.hpp:10
client-model.hpp
Kazv::processResponse
ClientResult processResponse(ClientModel m, SetAccountDataPerRoomResponse r)
Definition: account-data.cpp:23
Kazv::ClientResult
std::pair< ClientModel, ClientEffect > ClientResult
Definition: clientfwd.hpp:149
Kazv::mxcUriToMediaDesc
std::pair< std::string, std::string > mxcUriToMediaDesc(std::string mxcUri)
Definition: content.cpp:17
libkazv-config.hpp
Kazv::Api::GetContentThumbnailResponse
GetContentThumbnailJob::JobResponse GetContentThumbnailResponse
Definition: content-repo.hpp:384