PddPoolDTO.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 string name { get; set; } = string.Empty;
  15. public string nodeName { get; set; } = string.Empty;
  16. public string end_point { get; set; } = string.Empty;
  17. public string app_key { get; set; } = string.Empty;
  18. public string app_secret { get; set; } = string.Empty;
  19. public string pid { get; set; } = string.Empty;
  20. public string company { get; set; } = string.Empty;
  21. public string description { get; set; } = string.Empty;
  22. public DateTime create_time { get; set; } = DateTime.Now;
  23. public DateTime last_time { get; set; } = DateTime.Now;
  24. public DateTime login_time { get; set; } = DateTime.Now;
  25. public bool status { get; set; }
  26. public PddUnionWorkMode work_mode { get; set; } = PddUnionWorkMode.SiteApi;
  27. public string cookies { get; set; } = string.Empty;
  28. public decimal daily_income_limit { get; set; } = 0;
  29. public int daily_calls_limit { get; set; } = 0;
  30. public int current_hourly_calls { get; set; } = 0;
  31. public int hourly_calls_limit { get; set; } = 0;
  32. public int current_daily_calls { get; set; } = 0;
  33. public decimal draw_balance { get; set; } = 0;
  34. public bool enable_parse { get; set; } = false;
  35. public bool enable_coupon { get; set; } = false;
  36. public bool enable_sync_order { get; set; } = false;
  37. public int time_range { get; set; } = 0;
  38. public bool is_hide { get; set; } = true;
  39. }
  40. }