libkazv
Loading...
Searching...
No Matches
get-content-job-v1.hpp
Go to the documentation of this file.
1
/*
2
* This file is part of libkazv.
3
* SPDX-FileCopyrightText: 2025 nannanko <nannanko@kazv.moe>
4
* SPDX-License-Identifier: AGPL-3.0-or-later
5
*/
6
7
#include "
basejob.hpp
"
8
#include "
file-desc.hpp
"
9
10
#include <string>
11
#include <optional>
12
13
namespace
Kazv
{
14
class
GetContentJobV1
:
public
Kazv::BaseJob
15
{
16
public
:
17
explicit
GetContentJobV1
(std::string serverUrl, std::string token,
18
std::string serverName, std::string mediaId,
19
bool
allowRemote =
true
,
20
std::optional<FileDesc> downloadTo = std::nullopt);
21
22
static
BaseJob::Query
buildQuery
(
bool
allowRemote);
23
static
constexpr
auto
needsAuth
()
24
{
25
return
true
;
26
}
27
};
28
}
basejob.hpp
Kazv::BaseJob::Query
Definition
basejob.hpp:94
Kazv::BaseJob
Definition
basejob.hpp:68
Kazv::GetContentJobV1
Definition
get-content-job-v1.hpp:15
Kazv::GetContentJobV1::needsAuth
static constexpr auto needsAuth()
Definition
get-content-job-v1.hpp:23
Kazv::GetContentJobV1::buildQuery
static BaseJob::Query buildQuery(bool allowRemote)
Definition
get-content-job-v1.cpp:26
file-desc.hpp
Kazv
Definition
location.hpp:10
src
client
get-content-job-v1.hpp
Generated by
1.9.8