/
PlayFabApiSettings.h
36 lines (29 loc) · 1.35 KB
/
PlayFabApiSettings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include <string>
#include <map>
namespace PlayFab
{
/// <summary>
/// The settings that can be used (optionally) by instance versions of PlayFab APIs.
/// </summary>
class PlayFabApiSettings
{
#if defined(ENABLE_PLAYFABSERVER_API) || defined(ENABLE_PLAYFABADMIN_API) || defined(ENABLE_PLAYFAB_SECRETKEY)
public: // Server-only variables should only be visible when appropriate
#else
private: // But, static library memory size and alloc issues mean it always needs to exist
#endif
std::string developerSecretKey; // Developer secret key. These keys can be used in development environments.
public:
std::map<std::string, std::string> requestGetParams;
std::string baseServiceHost; // The base for a PlayFab service host
std::string titleId; // You must set this value for PlayFabSdk to work properly (found in the Game Manager for your title, at the PlayFab Website)
PlayFabApiSettings();
PlayFabApiSettings(const PlayFabApiSettings& other) = delete;
PlayFabApiSettings(PlayFabApiSettings&& other) = delete;
PlayFabApiSettings& operator=(const PlayFabApiSettings& other) = delete;
PlayFabApiSettings& operator=(PlayFabApiSettings&& other) = delete;
~PlayFabApiSettings() = default;
std::string GetUrl(const std::string& urlPath) const;
};
}