seripap / vainglory

(*DEPRECATED*: The API no longer exists, so this will no longer work) A Javascript API Client wrapper for Vainglory
MIT License
29 stars 7 forks source link

Modified models should return int values (Create Models for stats) #9

Open seripap opened 7 years ago

seripap commented 7 years ago

If the server returns a numerical value, the client should also return it. As introduced in the last version, some resources are overwritten;

stats.skillTier =  skillTiersResource.find(tier => tier.serverName === stats.skillTier).name
stats.karmaLevel = karmaResource.find(k => k.serverName === stats.karmaLevel).name

This should be an object with relevant data.