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
13namespace Kazv {
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}
Definition basejob.hpp:94
Definition basejob.hpp:68
Definition get-content-job-v1.hpp:15
static constexpr auto needsAuth()
Definition get-content-job-v1.hpp:23
static BaseJob::Query buildQuery(bool allowRemote)
Definition get-content-job-v1.cpp:26
Definition location.hpp:10