SubtitleSearchResult.cs 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /* This file is part of OpenSubtitles Handler
  2. A library that handle OpenSubtitles.org XML-RPC methods.
  3. Copyright © Ala Ibrahim Hadid 2013
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. using System;
  16. namespace OpenSubtitlesHandler
  17. {
  18. /// <summary>
  19. /// The subtitle search result that comes with server response on SearchSubtitles successed call
  20. /// </summary>
  21. public struct SubtitleSearchResult
  22. {
  23. private string _IDSubMovieFile;
  24. private string _MovieHash;
  25. private string _MovieByteSize;
  26. private string _MovieTimeMS;
  27. private string _IDSubtitleFile;
  28. private string _SubFileName;
  29. private string _SubActualCD;
  30. private string _SubSize;
  31. private string _SubHash;
  32. private string _IDSubtitle;
  33. private string _UserID;
  34. private string _SubLanguageID;
  35. private string _SubFormat;
  36. private string _SeriesSeason;
  37. private string _SeriesEpisode;
  38. private string _SubSumCD;
  39. private string _SubAuthorComment;
  40. private string _SubAddDate;
  41. private string _SubBad;
  42. private string _SubRating;
  43. private string _SubDownloadsCnt;
  44. private string _MovieReleaseName;
  45. private string _IDMovie;
  46. private string _IDMovieImdb;
  47. private string _MovieName;
  48. private string _MovieNameEng;
  49. private string _MovieYear;
  50. private string _MovieImdbRating;
  51. private string _UserNickName;
  52. private string _ISO639;
  53. private string _LanguageName;
  54. private string _SubDownloadLink;
  55. private string _ZipDownloadLink;
  56. public string IDSubMovieFile
  57. { get { return _IDSubMovieFile; } set { _IDSubMovieFile = value; } }
  58. public string MovieHash
  59. { get { return _MovieHash; } set { _MovieHash = value; } }
  60. public string MovieByteSize
  61. { get { return _MovieByteSize; } set { _MovieByteSize = value; } }
  62. public string MovieTimeMS
  63. { get { return _MovieTimeMS; } set { _MovieTimeMS = value; } }
  64. public string IDSubtitleFile
  65. { get { return _IDSubtitleFile; } set { _IDSubtitleFile = value; } }
  66. public string SubFileName
  67. { get { return _SubFileName; } set { _SubFileName = value; } }
  68. public string SubActualCD
  69. { get { return _SubActualCD; } set { _SubActualCD = value; } }
  70. public string SubSize
  71. { get { return _SubSize; } set { _SubSize = value; } }
  72. public string SubHash
  73. { get { return _SubHash; } set { _SubHash = value; } }
  74. public string IDSubtitle
  75. { get { return _IDSubtitle; } set { _IDSubtitle = value; } }
  76. public string UserID
  77. { get { return _UserID; } set { _UserID = value; } }
  78. public string SubLanguageID
  79. { get { return _SubLanguageID; } set { _SubLanguageID = value; } }
  80. public string SubFormat
  81. { get { return _SubFormat; } set { _SubFormat = value; } }
  82. public string SubSumCD
  83. { get { return _SubSumCD; } set { _SubSumCD = value; } }
  84. public string SubAuthorComment
  85. { get { return _SubAuthorComment; } set { _SubAuthorComment = value; } }
  86. public string SubAddDate
  87. { get { return _SubAddDate; } set { _SubAddDate = value; } }
  88. public string SubBad
  89. { get { return _SubBad; } set { _SubBad = value; } }
  90. public string SubRating
  91. { get { return _SubRating; } set { _SubRating = value; } }
  92. public string SubDownloadsCnt
  93. { get { return _SubDownloadsCnt; } set { _SubDownloadsCnt = value; } }
  94. public string MovieReleaseName
  95. { get { return _MovieReleaseName; } set { _MovieReleaseName = value; } }
  96. public string IDMovie
  97. { get { return _IDMovie; } set { _IDMovie = value; } }
  98. public string IDMovieImdb
  99. { get { return _IDMovieImdb; } set { _IDMovieImdb = value; } }
  100. public string MovieName
  101. { get { return _MovieName; } set { _MovieName = value; } }
  102. public string MovieNameEng
  103. { get { return _MovieNameEng; } set { _MovieNameEng = value; } }
  104. public string MovieYear
  105. { get { return _MovieYear; } set { _MovieYear = value; } }
  106. public string MovieImdbRating
  107. { get { return _MovieImdbRating; } set { _MovieImdbRating = value; } }
  108. public string UserNickName
  109. { get { return _UserNickName; } set { _UserNickName = value; } }
  110. public string ISO639
  111. { get { return _ISO639; } set { _ISO639 = value; } }
  112. public string LanguageName
  113. { get { return _LanguageName; } set { _LanguageName = value; } }
  114. public string SubDownloadLink
  115. { get { return _SubDownloadLink; } set { _SubDownloadLink = value; } }
  116. public string ZipDownloadLink
  117. { get { return _ZipDownloadLink; } set { _ZipDownloadLink = value; } }
  118. public string SeriesSeason
  119. { get { return _SeriesSeason; } set { _SeriesSeason = value; } }
  120. public string SeriesEpisode
  121. { get { return _SeriesEpisode; } set { _SeriesEpisode = value; } }
  122. /// <summary>
  123. /// SubFileName + " (" + SubFormat + ")"
  124. /// </summary>
  125. /// <returns></returns>
  126. public override string ToString()
  127. {
  128. return _SubFileName + " (" + _SubFormat + ")";
  129. }
  130. }
  131. }