This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettings.cs
81 lines (70 loc) · 3.48 KB
/
Settings.cs
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
namespace Miiverse_PC
{
/// <summary>A data record class representing user settings.</summary>
internal record class Settings()
{
/// <summary>
/// The protocol and domain or IP address of the Nintendo/Pretendo
/// account server that will be sent OAuth 2.0 login requests and
/// Miiverse service token requests. Default: Pretendo official server.
/// </summary>
public string AccountServer { get; init; } = "https://account.pretendo.cc";
/// <summary>
/// If the discovery server uses the same address as the account
/// server. If true, the custom discovery server address is ignored.
/// </summary>
public bool IsDiscoveryServerSameAsAccountServer { get; init; } = false;
/// <summary>
/// The protocol and domain or IP address of the Miiverse discovery
/// server, which responds with the Miiverse portal host. Default:
/// Pretendo official server.
/// </summary>
public string DiscoveryServer { get; init; } = "https://discovery.olv.pretendo.cc";
/// <summary>
/// The Miiverse portal host, which may override the one sent by the
/// discovery server. Default: empty (use the discovery server).
/// </summary>
public string PortalServer { get; init; } = "";
/// <summary>
/// If the portal server address should be retrieved from the
/// discovery server. If true, the custom portal server address is ignored.
/// </summary>
public bool IsDiscoveryServerUsed { get; init; } = true;
/// <summary>
/// The language ID sent in the header when loading the Miiverse
/// portal in the browser, used for localization. Default: English.
/// </summary>
public LanguageId Language { get; init; } = LanguageId.English;
/// <summary>
/// The country ID sent in the header when loading the Miiverse portal
/// in the browser, currently unused. Default: English.
/// </summary>
public CountryId Country { get; init; } = CountryId.UnitedStates;
/// <summary>
/// The platform ID used to determine which console portal to use, Wii
/// U or 3DS. Default: Wii U.
/// </summary>
public PlatformId Platform { get; init; } = PlatformId.WiiU;
/// <summary>
/// The client ID used by the console for account requests. Default:
/// the Wii U's client ID.
/// </summary>
public string ConsoleClientId { get; init; } = "a2efa818a34fa16b8afbc8a74eba3eda";
/// <summary>
/// The client secret used by the console for account requests.
/// Default: the Wii U's client secret.
/// </summary>
public string ConsoleClientSecret { get; init; } = "c91cdb5658bd4954ade78533a339cf9a";
/// <summary>
/// The title ID of the Miiverse applet. Default: the Wii U Miiverse
/// applet in the US.
/// </summary>
public string MiiverseTitleId { get; init; } = "000500301001610A";
/// <summary>
/// The thumbprint of the account server's root certificate hash,
/// which allows connecting to servers with self-signed certificates.
/// Default: the certificate hash of my personal server.
/// </summary>
public string AllowedServerRootCertificateHash { get; init; } = "209F918F628347868A559F52B68D007B6DD4554F";
}
}