Created
September 28, 2014 18:12
-
-
Save SamLeach/381c03b4703133d0b28e to your computer and use it in GitHub Desktop.
StackOverflow Electorate Badge award
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
private bool AwardElectorateBadge(User user) | |
{ | |
const int MinimumRequiredQuestionVotes = 600; | |
return user.Votes.Questions >= MinimumRequiredQuestionVotes && | |
user.Votes.Total <= user.Votes.Questions * 4; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment