Class RouteUtils
Inheritance
Inherited Members
Namespace: Camille.Enums
Assembly: Camille.Enums.dll
Syntax
public static class RouteUtils
Methods
| Improve this Doc View SourceAsRegionString(PlatformRoute)
Get the slightly more human-friendly alternate name for this PlatformRoute
.
Specifically excludes any trailing numbers and appends extra N(orth), S(outh), E(ast),
and/or W(est) suffixes to some names. Some of these are old region names which are
often still used as user-facing names, e.g. on op.gg.
Declaration
public static string AsRegionString(this PlatformRoute value)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | value | This, the PlatformRoute to convert. |
Returns
Type | Description |
---|---|
System.String |
ToRegional(PlatformRoute)
Converts the PlatformRoute into its corresponding RegionalRoute. Useful for MatchV5 and TftMatchV1 endpoints which use regional routes rather than platforms.
Declaration
public static RegionalRoute ToRegional(this PlatformRoute value)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | value | This, the PlatformRoute to convert. |
Returns
Type | Description |
---|---|
RegionalRoute |
ToRegionalLog(PlatformRoute)
Converts the PlatformRoute into its corresponding RegionalRoute for LoR endpoints. For example, LorMatchV1.
Declaration
public static RegionalRoute ToRegionalLog(this PlatformRoute value)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | value | This, the PlatformRoute to convert. |
Returns
Type | Description |
---|---|
RegionalRoute |
ToTournamentRegion(PlatformRoute)
Used in the LoL Tournament API. Specifically, TournamentStubV4 and TournamentV4's RegisterProviderData method.
Declaration
public static TournamentRegion? ToTournamentRegion(this PlatformRoute value)
Parameters
Type | Name | Description |
---|---|---|
PlatformRoute | value | This, the PlatformRoute to convert. |
Returns
Type | Description |
---|---|
System.Nullable<TournamentRegion> |