コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }