Extensions

Added in 1.2.0

RiotBlossom provides extensions that turbo charges the provided type enums! This should be way better than the old way of manually referencing a mapper or converter, hehe!

hehe

Provided examples of each available method are shown below:

LeagueDivisionExtensions

// => "IV"
LeagueDivision.IV.GetValue();

LeagueQueueExtensions

// => "RANKED_SOLO_5x5"
LeagueQueue.RankedSolo5x5.GetValue();

LeagueTierExtensions

// => "PLATINUM"
LeagueTier.Platinum.GetValue();

LorRegionExtensions

// => "americas"
LorRegion.Americas.GetId();

PlatformExtensions

// => "JP"
Platform.Japan.GetAbbreviation();
// => "Europe Nordic and East"
Platform.EuropeNordicEast.GetPrettyName();
// => Region.Asia
Platform.Korea.GetRegion();
// => "na1"
Platform.NorthAmerica.GetId();
// => "americas"
Platform.Brazil.GetRegionId();
// => "ja_JP"
Platform.Japan.GetDefaultLocale();

RegionExtensions

// => "americas"
Region.Americas.GetId();
// => "Asia"
Region.Asia.GetPrettyName();

TftLeagueQueueExtensions

// => "RANKED_TFT_TURBO"
TftLeagueQueue.RankedTftTurbo.GetValue();

ValRegionExtensions

// => "NA"
ValRegion.NorthAmerica.GetAbbreviation();
// => "ap"
ValRegion.AsiaPacific.GetId();