using Abp.Runtime.Validation;
using CityQuest.ApplicationServices.Shared.Dtos.Input;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CityQuest.ApplicationServices.GameModule.Games.Dtos
{
    public class UpdateGameInput : UpdateInput<GameDto, long>, IShouldNormalize
    {
        public string GameImageData { get; set; }

        public void Normalize() 
        {
            foreach (var gameTask in Entity.GameTasks)
            {
                gameTask.GameTaskType = null;
                foreach (var condition in gameTask.Conditions)
                {
                    condition.ConditionType = null;
                }
            }
        }
    }
}
