Skip to content

Commit 2415c50

Browse files
committed
PUBG Black Budget support
Valorant mappings endpoint
1 parent 8b95b40 commit 2415c50

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

FModel/Settings/EndpointSettings.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ public class EndpointSettings : ViewModel
1010
{
1111
public static EndpointSettings[] Default(string gameName)
1212
{
13-
switch (gameName)
13+
return gameName switch
1414
{
15-
case "Fortnite":
16-
case "Fortnite [LIVE]":
17-
return new EndpointSettings[]
18-
{
19-
new("https://uedb.dev/svc/api/v1/fortnite/aes", "$.['mainKey','dynamicKeys']"),
20-
new("https://uedb.dev/svc/api/v1/fortnite/mappings", "$.mappings.ZStandard")
21-
};
22-
default:
23-
return new EndpointSettings[] { new(), new() };
24-
}
15+
"Fortnite" or "Fortnite [LIVE]" => [
16+
new("https://uedb.dev/svc/api/v1/fortnite/aes", "$.['mainKey','dynamicKeys']"),
17+
new("https://uedb.dev/svc/api/v1/fortnite/mappings", "$.mappings.ZStandard")
18+
],
19+
"VALORANT" or "VALORANT [LIVE]" => [
20+
new("https://uedb.dev/svc/api/v1/valorant/aes", "$.['mainKey','dynamicKeys']"),
21+
new("https://uedb.dev/svc/api/v1/valorant/mappings", "$.mappings.ZStandard")
22+
],
23+
_ => [new(), new()],
24+
};
2525
}
2626

2727
private string _url;
@@ -106,4 +106,4 @@ public void TryValidate(DynamicApiEndpoint endpoint, EEndpointType type, out JTo
106106
}
107107
}
108108
}
109-
}
109+
}

0 commit comments

Comments
 (0)