commonMain.com.bselzer.gw2.v2.model.enumeration.extension.ConvertValue.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of v2-model-enumeration-jvm Show documentation
Show all versions of v2-model-enumeration-jvm Show documentation
Enumerations for Guild Wars 2 API models.
The newest version!
package com.bselzer.gw2.v2.model.enumeration.extension
import com.bselzer.ktx.serialization.context.JsonContext
// Wrappers are used instead of the enums directly since while enums can help for pinpointing a specific type...
// There may be a missing or inconsistent enum sent by the API which will be no problem for deserialization because it will exist in its original form in the wrapper.
fun com.bselzer.gw2.v2.model.enumeration.wrapper.AchievementFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.AchievementType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.AccountAccess.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ArmorDetailType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ArmorWeight.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.AttributeName.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.AttunementName.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.Binding.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.CategoryAchievementFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.CharacterFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ColorCategory.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ComboFieldType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ComboFinisherType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.CraftingDiscipline.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ConsumableDetailType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ConsumableUnlockType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ContainerDetailType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.DungeonPathType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.EffectName.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.EquipmentLocation.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.EquipmentSlot.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.GatheringToolDetailType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.Gender.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.GizmoDetailType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.GuildEmblemFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.InfluenceActivity.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.InfusionUpgradeFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ItemFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ItemGameType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ItemRarity.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ItemRestriction.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.MapType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.MaterialType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.MountName.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.NoveltySlot.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.PointOfInterestType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.Product.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.ProfessionFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.PvpDivisionFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.PvpHeroName.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.PvpHeroType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.PvpLadderType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.PvpRatingType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.PvpResult.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.PvpTeam.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.RaceGender.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.RaidEventType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.RecipeFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.RecipeType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.RegionType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.SabUnlockName.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.SalvageKitDetailType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.SkillCategory.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.SkillFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.SkillSlot.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.SkillType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.SkinFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.SpecializationName.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.StashOperation.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.TeamMemberRole.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.TrainingCategory.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.TrainingTrackType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.TraitSlot.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.TraitTier.decodeOrNull() = value.toString().decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.TrinketDetailType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.UpgradeAction.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.UpgradeComponentDetailType.decodeOrNull() =
value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.UpgradeComponentFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.WeaponDamageType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.WeaponDetailType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.WeaponFlag.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.WeaponType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.WorldName.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.WorldPopulationLevel.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.WvwMapBonusType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.WvwMapType.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.WvwObjectiveOwner.decodeOrNull() = value.decodeOrNull()
fun com.bselzer.gw2.v2.model.enumeration.wrapper.WvwObjectiveType.decodeOrNull() = value.decodeOrNull()
internal inline fun > String.decodeOrNull(): E? = with(JsonContext) { decodeOrNull() }