public static string BadgeGetName(Badge badge) { if (badge == null || string.IsNullOrEmpty(badge.name)) return string.Empty; return badge.name; }
public static bool BadgeHasIcon(Badge badge) { if (badge == null || string.IsNullOrEmpty(badge.icon)) return false; return true; }
public static string BadgeGetDescription(Badge badge) { if (badge == null || string.IsNullOrEmpty(badge.description)) return string.Empty; return badge.description; }