LeviLamina
Loading...
Searching...
No Matches
MinecraftServiceKeysRequestHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/threading/Async.h"
7
8// auto generated forward declare list
9// clang-format off
10class TaskGroup;
12namespace Bedrock::Http { class Request; }
13namespace Bedrock::Http { class Response; }
14// clang-format on
15
17public:
18 // static functions
19 // NOLINTBEGIN
20 MCNAPI static ::Bedrock::Http::Request _buildKeysRequest(::std::string const& keyEndpoint, bool highPriority);
21
22 MCNAPI static ::Bedrock::Http::Request
23 _buildMetadataRequest(::std::string const& authServiceUrl, bool highPriority);
24
25 MCNAPI static ::std::optional<::std::unordered_map<::std::string, ::std::string>>
27
28 MCNAPI static ::std::optional<::MinecraftServiceKeysMetadata>
30
31 MCNAPI static ::Bedrock::Threading::Async<::std::optional<::std::unordered_map<::std::string, ::std::string>>>
32 getKeys(::TaskGroup& taskOwner, ::std::string const& endpoint, bool highPriority);
33
34 MCNAPI static ::Bedrock::Threading::Async<::std::optional<::MinecraftServiceKeysMetadata>>
35 getKeysMetadata(::TaskGroup& taskOwner, ::std::string const& authServiceUrl, bool highPriority);
36 // NOLINTEND
37};
Definition Response.h:13
Definition MinecraftServiceKeysRequestHandler.h:16
static MCAPI ::Bedrock::Http::Request _buildKeysRequest(::std::string const &keyEndpoint, bool highPriority)
static MCAPI ::Bedrock::Threading::Async<::std::optional<::std::unordered_map<::std::string, ::std::string > > > getKeys(::TaskGroup &taskOwner, ::std::string const &endpoint, bool highPriority)
static MCAPI ::Bedrock::Http::Request _buildMetadataRequest(::std::string const &authServiceUrl, bool highPriority)
static MCAPI ::std::optional<::MinecraftServiceKeysMetadata > _parseMetadataResponse(::Bedrock::Http::Response const &response)
static MCAPI ::Bedrock::Threading::Async<::std::optional<::MinecraftServiceKeysMetadata > > getKeysMetadata(::TaskGroup &taskOwner, ::std::string const &authServiceUrl, bool highPriority)
static MCAPI ::std::optional<::std::unordered_map<::std::string, ::std::string > > _parseKeysResponse(::Bedrock::Http::Response const &response)
Definition TaskGroup.h:48
Definition MinecraftServiceKeysMetadata.h:5