Esempio n. 1
0
        public static string BadgeGetName(Badge badge)
        {
            if (badge == null || string.IsNullOrEmpty(badge.name))
                return string.Empty;

            return badge.name;
        }
Esempio n. 2
0
        public static bool BadgeHasIcon(Badge badge)
        {
            if (badge == null || string.IsNullOrEmpty(badge.icon))
                return false;

            return true;
        }
Esempio n. 3
0
        public static string BadgeGetDescription(Badge badge)
        {
            if (badge == null || string.IsNullOrEmpty(badge.description))
                return string.Empty;

            return badge.description;
        }