Beispiel #1
0
        public static Badge AwardGroupCustom(string groupUrl, string image, string title, string description = null)
        {
            BaseBadge badge = new BaseBadge
            {
                Image       = image,
                Title       = title,
                Description = description,
                IsAcquired  = true
            };

            return(badge.AwardGroup(groupUrl));
        }
Beispiel #2
0
        public static Badge AwardGroup <T>(string groupUrl) where T : BaseBadge
        {
            BaseBadge badge = (BaseBadge)Activator.CreateInstance(typeof(T));

            return(badge.AwardGroup(groupUrl));
        }