using System.Collections.Generic;
using System.Linq;
using SGModule.ConfigLoader;

namespace ChillConnect
{
    public class MakeupModel : ConfigModel<MakeupModel, Makeup>
    {
        public MakeupModel(string key) : base(key)
        {
        }
        
        public Makeup GetData(int id)
        {
            return DataList.FirstOrDefault(makeup => makeup.id == id);
        }
    }

    public class Makeup
    {
        public int id;
        public int item_need;
        public bool is_onetime;
        public int task_need;
        public int ad_need;
        public int item;
        public int levels_need;
        public int AD_Down;
        public int AD_Limit_times;
        public int Login_Limit_times;
        public int Active_time;
        public int Active_time_Down;
        public int Active_Limit_times;
    }

    public class MakeupModel_2 : ConfigModel<MakeupModel_2, Makeup_2>
    {
        public MakeupModel_2(string key) : base(key)
        {
        }
        
        public Makeup_2 GetData(int id)
        {
            return DataList.FirstOrDefault(makeup2 => makeup2.id == id);
        }
    }

    public class Makeup_2
    {
        public int id;
        public int item_need;
        public bool is_onetime;
        public int task_need;
        public int ad_need;
        public int item;
        public int levels_need;
        public int AD_Down;
        public int AD_Limit_times;
        public int Login_Limit_times;
        public int Active_time;
        public int Active_time_Down;
        public int Active_Limit_times;
        public int Reset_time;
        public float ADIncrease;
        public int PayIncrease;
    }
}