Show / Hide Table of Contents

Class RouteUtils

Inheritance
System.Object
RouteUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Camille.Enums
Assembly: Camille.Enums.dll
Syntax
public static class RouteUtils

Methods

| Improve this Doc View Source

AsRegionString(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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX