Movie.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace AVSORTER
  6. {
  7. public class Movie
  8. {
  9. /// <summary>
  10. /// 演员
  11. /// </summary>
  12. public List<string> Actor { get; set; }
  13. /// <summary>
  14. /// 标题
  15. /// </summary>
  16. public string Title
  17. {
  18. get
  19. {
  20. return this._title;
  21. }
  22. set
  23. {
  24. if (value.Length>200)
  25. {
  26. this._title = value.Substring(0, 200);
  27. }
  28. else
  29. {
  30. this._title = value;
  31. }
  32. }
  33. }
  34. string _title;
  35. /// <summary>
  36. /// 封面
  37. /// </summary>
  38. public string CoverURL { get; set; }
  39. /// <summary>
  40. /// 封面图片文件
  41. /// </summary>
  42. public string CoverFile { get; set; }
  43. /// <summary>
  44. /// 公司
  45. /// </summary>
  46. public string Maker { get; set; }
  47. /// <summary>
  48. /// 标签
  49. /// </summary>
  50. public string Lable { get; set; }
  51. /// <summary>
  52. /// 系列
  53. /// </summary>
  54. public string Series { get; set; }
  55. /// <summary>
  56. /// 制造商
  57. /// </summary>
  58. public string Producer { get; set; }
  59. /// <summary>
  60. /// 日期
  61. /// </summary>
  62. public DateTime ReleaseDate { get; set; }
  63. /// <summary>
  64. /// 片长度
  65. /// </summary>
  66. public string Minutes { get; set; }
  67. /// <summary>
  68. /// 番号
  69. /// </summary>
  70. public string AVCode { get; set; }
  71. /// <summary>
  72. /// 介绍
  73. /// </summary>
  74. public string Introduction { get; set; }
  75. public string ItemURL { get; set; }
  76. public bool Censored { get; set; }
  77. public string VideosFile { get; set; }
  78. // public override string ToString()
  79. // {
  80. // return string.Format(@"Actor:{0}
  81. //Title:{1}
  82. //CoverURL:{2}
  83. //CoverFile:{3}
  84. //Maker:{4}
  85. //Label:{5}
  86. //Series:{6}
  87. //Producer:{7}
  88. //ReleaseDate:{8}
  89. //Minutes:{9}
  90. //Introduction:{10}
  91. //ItemURL:{11}
  92. //CODE:{12}", Tools.ListToString(Actor), Title, CoverURL, CoverFile, Maker, Lable,Series,Producer, ReleaseDate.ToShortDateString(), Minutes, Introduction, ItemURL,AVCode);
  93. // }
  94. public override string ToString()
  95. {
  96. return this.AVCode +"\t"+ this.Title;
  97. }
  98. }
  99. }