Beispiel #1
0
        public override void Update(BadgeResult e)
        {
            if (habitRepository == null)
            {
                return;
            }

            Log ev = e as Log;

            if (ev == null)
            {
                return;
            }

            habitRepository.AddLog(ev.User_id, ev.Habit_id, DateTime.Now);
        }
Beispiel #2
0
        public override void Update(BadgeResult e)
        {
            if (badgeRepository == null)
            {
                return;
            }

            EpicComeback ev = e as EpicComeback;

            if (ev == null)
            {
                return;
            }

            Badge b = BadgeFactory.Create(ev.User_id, _giver.Give(), _giver.Desc());

            badgeRepository.AddBadge(b);
        }
Beispiel #3
0
        public override void Update(BadgeResult e)
        {
            if (badgeRepository == null)
            {
                return;
            }

            Dominating ev = e as Dominating;

            if (ev == null)
            {
                return;
            }

            Badge b = BadgeFactory.Create(ev.User_id, _giver.Give(), _giver.Desc());

            badgeRepository.AddBadge(b);
        }