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

namespace RedHotRoast
{
    [ConfigKey("SubscribePodcast")]
    public class SubscribePodcast
    {
        public string user_name;
        public string Subscribe;
    }
    
    public class SubscribePodcastModel
    {
        private static SubscribePodcast _item = ConfigSystem.GetConfig<SubscribePodcast>().FirstOrDefault();

        public static List<string> config_name_list { get; private set; } = !string.IsNullOrEmpty(_item?.user_name)
            ? _item.user_name.Split(',').ToList()
            : new List<string>();

        public static List<string> config_vip_level_list { get; private set; } = !string.IsNullOrEmpty(_item?.Subscribe)
            ? _item.Subscribe.Split(',').ToList()
            : new List<string>();
    }
}