using System.Xml.Linq;

namespace molilian.core
{
    public enum PddUnionWorkMode
    {
        All = 0,
        SiteApi = 1,
        AffApi = 2,
        Crawler = 3,
    }

    public class PddPoolDTO
    {
        public int id { get; set; }
        public string name { get; set; } = string.Empty;
        public string nodeName { get; set; } = string.Empty;
        public string end_point { get; set; } = string.Empty;
        public string app_key { get; set; } = string.Empty;
        public string app_secret { get; set; } = string.Empty;
        public string pid { get; set; } = string.Empty;
        public string company { get; set; } = string.Empty;
        public string description { get; set; } = string.Empty;
        public DateTime create_time { get; set; } = DateTime.Now;
        public DateTime last_time { get; set; } = DateTime.Now;
        public DateTime login_time { get; set; } = DateTime.Now;
        public bool status { get; set; }
        public PddUnionWorkMode work_mode { get; set; } = PddUnionWorkMode.SiteApi;
        public string cookies { get; set; } = string.Empty;


        public decimal daily_income_limit { get; set; } = 0;
        public int daily_calls_limit { get; set; } = 0;
        public int current_hourly_calls { get; set; } = 0;
        public int hourly_calls_limit { get; set; } = 0;
        public int current_daily_calls { get; set; } = 0;
        public decimal draw_balance { get; set; } = 0;
        public bool enable_parse { get; set; } = false;
        public bool enable_coupon { get; set; } = false;
        public bool enable_sync_order { get; set; } = false;
        public int time_range { get; set; } = 0;
        public bool is_hide { get; set; } = true;

    }
}
