PddPoolDTO.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. using System.Xml.Linq;
  2. namespace molilian.core
  3. {
  4. public enum PddUnionWorkMode
  5. {
  6. All = 0,
  7. SiteApi = 1,
  8. AffApi = 2,
  9. Crawler = 3,
  10. }
  11. public class PddPoolDTO
  12. {
  13. public int id { get; set; }
  14. public int duoId { get; set; }
  15. public string name { get; set; } = string.Empty;
  16. public string nodeName { get; set; } = string.Empty;
  17. public string end_point { get; set; } = string.Empty;
  18. public string app_key { get; set; } = string.Empty;
  19. public string app_secret { get; set; } = string.Empty;
  20. public string pid { get; set; } = string.Empty;
  21. public string access_token { get; set; } = string.Empty;
  22. public string refresh_token { get; set; } = string.Empty;
  23. public string company { get; set; } = string.Empty;
  24. public string description { get; set; } = string.Empty;
  25. public DateTime create_time { get; set; } = DateTime.Now;
  26. public DateTime last_time { get; set; } = DateTime.Now;
  27. public DateTime login_time { get; set; } = DateTime.Now;
  28. public bool status { get; set; } = false;
  29. public bool cookie_status { get; set; } = false;
  30. public PddUnionWorkMode work_mode { get; set; } = PddUnionWorkMode.SiteApi;
  31. public string cookies { get; set; } = string.Empty;
  32. public string riskCookie { get; set; } = string.Empty;
  33. public decimal daily_income_limit { get; set; } = 0;
  34. public int daily_calls_limit { get; set; } = 0;
  35. public int current_hourly_calls { get; set; } = 0;
  36. public int hourly_calls_limit { get; set; } = 0;
  37. public int current_daily_calls { get; set; } = 0;
  38. public int time_range { get; set; } = 0;
  39. public int rpm_limit { get; set; } = 0;
  40. public int cis_limit { get; set; } = 0;
  41. public decimal draw_balance { get; set; } = 0;
  42. public bool enable_parse { get; set; } = false;
  43. public bool enable_coupon { get; set; } = false;
  44. public bool enable_sync_revenue { get; set; } = false;
  45. public bool enable_sync_order { get; set; } = false;
  46. public bool is_hide { get; set; } = true;
  47. public bool enable_call_stats { get; set; } = true;
  48. public string parse_type { get; set; } = string.Empty;
  49. public string riskStrategy { get; set; } = string.Empty;
  50. public int launchScene { get; set; } = -1;
  51. }
  52. }