internal bool MedalsNotificationCheck()
{
var userProfile = GetUserProfile();
var userData = userProfile.GetUserData();
if (userData == null || userData.UserMedalsList == null || userData.UserMedalsList.Count == 0)
{
log.WarnFormat("[MedalsNotificationCheck] User={0} tried to get MedalsNotificationCheck, but doesn't exists.", userProfile.UserName);
return false;
}
bool flag = userData.MedalNotificationFlag;
log.InfoFormat("[MedalsNotificationCheck] user={0}, MedalsNotificationCheck={1}.", userProfile.UserName, flag);
return flag;
}