Created
April 22, 2015 08:25
-
-
Save Noxville/c51c7f09a6dd0801f2aa to your computer and use it in GitHub Desktop.
Patch Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package twopee | |
import grails.transaction.Transactional | |
import org.hibernate.Session | |
@Transactional | |
class PatchService { | |
String getPatch(Mtch match) { | |
return getPatch(match.matchId) | |
} | |
String getPatch(Long matchId) { | |
if (matchId < 46254734) return "6.74" | |
else if (matchId < 53113899) return "6.75" | |
else if (matchId < 81640063) return "6.76" | |
else if (matchId < 211765789) return "6.77" | |
else if (matchId < 353805307) return "6.78" | |
else if (matchId < 490145179) return "6.79" | |
else if (matchId < 634455782) return "6.80" | |
else if (matchId < 920489421) return "6.81" | |
else if (matchId < 1097824358) return "6.82" | |
else return "6.83" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment