aboutsummaryrefslogtreecommitdiff
path: root/OpenSubtitlesHandler/MethodResponses
diff options
context:
space:
mode:
author7illusions <z@7illusions.com>2014-05-12 16:55:07 +0200
committer7illusions <z@7illusions.com>2014-05-12 16:55:07 +0200
commitbaf5cf2544fcaad2246923f60caaf3fed4a94aaf (patch)
treea808b700095f876e437b95c432c0220e241f9fda /OpenSubtitlesHandler/MethodResponses
parent8f3a6279e173dcbaaa05a56556afb410ee12dd4d (diff)
parentb9b568de13d81f9db1a8502d50940475c1d79c72 (diff)
Merge pull request #3 from MediaBrowser/master
Sync with Master
Diffstat (limited to 'OpenSubtitlesHandler/MethodResponses')
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseAddComment.cs32
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseAddRequest.cs35
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseAutoUpdate.cs60
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseCheckMovieHash.cs37
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseCheckMovieHash2.cs37
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseCheckSubHash.cs38
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseDetectLanguage.cs37
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseError.cs36
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseGetAvailableTranslations.cs37
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseGetComments.cs41
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseGetSubLanguages.cs39
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseGetTranslation.cs37
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseInsertMovie.cs37
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseInsertMovieHash.cs38
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseLogIn.cs40
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseMovieDetails.cs73
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseMovieSearch.cs43
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseNoOperation.cs53
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseReportWrongImdbMovie.cs33
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseReportWrongMovieHash.cs34
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseSearchToMail.cs32
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseServerInfo.cs132
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitleDownload.cs44
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitleSearch.cs46
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitlesVote.cs44
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseTryUploadSubtitles.cs40
-rw-r--r--OpenSubtitlesHandler/MethodResponses/MethodResponseUploadSubtitles.cs39
27 files changed, 1194 insertions, 0 deletions
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseAddComment.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseAddComment.cs
new file mode 100644
index 000000000..4cfa11cc9
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseAddComment.cs
@@ -0,0 +1,32 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("AddComment method response",
+ "AddComment method response hold all expected values from server.")]
+ public class MethodResponseAddComment : IMethodResponse
+ {
+ public MethodResponseAddComment()
+ : base()
+ { }
+ public MethodResponseAddComment(string name, string message)
+ : base(name, message)
+ { }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseAddRequest.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseAddRequest.cs
new file mode 100644
index 000000000..8ea1c387c
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseAddRequest.cs
@@ -0,0 +1,35 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("AddRequest method response",
+ "AddRequest method response hold all expected values from server.")]
+ public class MethodResponseAddRequest : IMethodResponse
+ {
+ public MethodResponseAddRequest()
+ : base()
+ { }
+ public MethodResponseAddRequest(string name, string message)
+ : base(name, message)
+ { }
+ private string _request_url;
+
+ public string request_url { get { return _request_url; } set { _request_url = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseAutoUpdate.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseAutoUpdate.cs
new file mode 100644
index 000000000..26edf8b0e
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseAutoUpdate.cs
@@ -0,0 +1,60 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.ComponentModel;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("AutoUpdate method response",
+ "AutoUpdate method response hold all expected values from server.")]
+ public class MethodResponseAutoUpdate : IMethodResponse
+ {
+ public MethodResponseAutoUpdate()
+ : base()
+ { }
+ public MethodResponseAutoUpdate(string name, string message)
+ : base(name, message)
+ { }
+
+ private string _version;
+ private string _url_windows;
+ private string _comments;
+ private string _url_linux;
+ /// <summary>
+ /// Latest application version
+ /// </summary>
+ [Description("Latest application version"), Category("AutoUpdate")]
+ public string version { get { return _version; } set { _version = value; } }
+ /// <summary>
+ /// Download URL for Windows version
+ /// </summary>
+ [Description("Download URL for Windows version"), Category("AutoUpdate")]
+ public string url_windows { get { return _url_windows; } set { _url_windows = value; } }
+ /// <summary>
+ /// Application changelog and other comments
+ /// </summary>
+ [Description("Application changelog and other comments"), Category("AutoUpdate")]
+ public string comments { get { return _comments; } set { _comments = value; } }
+ /// <summary>
+ /// Download URL for Linux version
+ /// </summary>
+ [Description("Download URL for Linux version"), Category("AutoUpdate")]
+ public string url_linux { get { return _url_linux; } set { _url_linux = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseCheckMovieHash.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseCheckMovieHash.cs
new file mode 100644
index 000000000..30ef075b9
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseCheckMovieHash.cs
@@ -0,0 +1,37 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("CheckMovieHash method response",
+ "CheckMovieHash method response hold all expected values from server.")]
+ public class MethodResponseCheckMovieHash : IMethodResponse
+ {
+ public MethodResponseCheckMovieHash()
+ : base()
+ { }
+ public MethodResponseCheckMovieHash(string name, string message)
+ : base(name, message)
+ { }
+ private List<CheckMovieHashResult> results = new List<CheckMovieHashResult>();
+ public List<CheckMovieHashResult> Results
+ { get { return results; } set { results = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseCheckMovieHash2.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseCheckMovieHash2.cs
new file mode 100644
index 000000000..78cdef0c4
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseCheckMovieHash2.cs
@@ -0,0 +1,37 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("CheckMovieHash2 method response",
+ "CheckMovieHash2 method response hold all expected values from server.")]
+ public class MethodResponseCheckMovieHash2 : IMethodResponse
+ {
+ public MethodResponseCheckMovieHash2()
+ : base()
+ { }
+ public MethodResponseCheckMovieHash2(string name, string message)
+ : base(name, message)
+ { }
+ private List<CheckMovieHash2Result> results = new List<CheckMovieHash2Result>();
+ public List<CheckMovieHash2Result> Results
+ { get { return results; } set { results = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseCheckSubHash.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseCheckSubHash.cs
new file mode 100644
index 000000000..45c73631c
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseCheckSubHash.cs
@@ -0,0 +1,38 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("CheckSubHash method response",
+ "CheckSubHash method response hold all expected values from server.")]
+ public class MethodResponseCheckSubHash : IMethodResponse
+ {
+ public MethodResponseCheckSubHash()
+ : base()
+ { }
+ public MethodResponseCheckSubHash(string name, string message)
+ : base(name, message)
+ { }
+ private List<CheckSubHashResult> results = new List<CheckSubHashResult>();
+
+ public List<CheckSubHashResult> Results { get { return results; } set { results = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseDetectLanguage.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseDetectLanguage.cs
new file mode 100644
index 000000000..20b4d30f3
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseDetectLanguage.cs
@@ -0,0 +1,37 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System.Collections.Generic;
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("DetectLanguage method response",
+ "DetectLanguage method response hold all expected values from server.")]
+ public class MethodResponseDetectLanguage : IMethodResponse
+ {
+ public MethodResponseDetectLanguage()
+ : base()
+ { }
+ public MethodResponseDetectLanguage(string name, string message)
+ : base(name, message)
+ { }
+ private List<DetectLanguageResult> results = new List<DetectLanguageResult>();
+
+ public List<DetectLanguageResult> Results
+ { get { return results; } set { results = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseError.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseError.cs
new file mode 100644
index 000000000..273dfb1ad
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseError.cs
@@ -0,0 +1,36 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+namespace OpenSubtitlesHandler
+{
+ /// <summary>
+ /// Response that can be used for general error like internet connection fail.
+ /// </summary>
+ [MethodResponseDescription("Error method response",
+ "Error method response that describes error that occured")]
+ public class MethodResponseError : IMethodResponse
+ {
+ public MethodResponseError()
+ : base()
+ { }
+ public MethodResponseError(string name, string message)
+ : base(name, message)
+ { }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseGetAvailableTranslations.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseGetAvailableTranslations.cs
new file mode 100644
index 000000000..1ee4ea6c0
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseGetAvailableTranslations.cs
@@ -0,0 +1,37 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("GetAvailableTranslations method response",
+ "GetAvailableTranslations method response hold all expected values from server.")]
+ public class MethodResponseGetAvailableTranslations : IMethodResponse
+ {
+ public MethodResponseGetAvailableTranslations()
+ : base()
+ { }
+ public MethodResponseGetAvailableTranslations(string name, string message)
+ : base(name, message)
+ { }
+ private List<GetAvailableTranslationsResult> results = new List<GetAvailableTranslationsResult>();
+ public List<GetAvailableTranslationsResult> Results { get { return results; } set { results = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseGetComments.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseGetComments.cs
new file mode 100644
index 000000000..6a586d5ce
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseGetComments.cs
@@ -0,0 +1,41 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("GetComments method response",
+ "GetComments method response hold all expected values from server.")]
+ public class MethodResponseGetComments : IMethodResponse
+ {
+ public MethodResponseGetComments()
+ : base()
+ { }
+ public MethodResponseGetComments(string name, string message)
+ : base(name, message)
+ { }
+ private List<GetCommentsResult> results = new List<GetCommentsResult>();
+
+ public List<GetCommentsResult> Results
+ { get { return results; } set { results = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseGetSubLanguages.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseGetSubLanguages.cs
new file mode 100644
index 000000000..dc8100c92
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseGetSubLanguages.cs
@@ -0,0 +1,39 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("GetSubLanguages method response",
+ "GetSubLanguages method response hold all expected values from server.")]
+ public class MethodResponseGetSubLanguages : IMethodResponse
+ {
+ public MethodResponseGetSubLanguages()
+ : base()
+ { }
+ public MethodResponseGetSubLanguages(string name, string message)
+ : base(name, message)
+ { }
+ private List<SubtitleLanguage> languages = new List<SubtitleLanguage>();
+
+ public List<SubtitleLanguage> Languages
+ { get { return languages; } set { languages = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseGetTranslation.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseGetTranslation.cs
new file mode 100644
index 000000000..548246887
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseGetTranslation.cs
@@ -0,0 +1,37 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("GetTranslation method response",
+ "GetTranslation method response hold all expected values from server.")]
+ public class MethodResponseGetTranslation : IMethodResponse
+ {
+ public MethodResponseGetTranslation()
+ : base()
+ { }
+ public MethodResponseGetTranslation(string name, string message)
+ : base(name, message)
+ { }
+ private string data;
+
+ public string ContentData { get { return data; } set { data = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseInsertMovie.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseInsertMovie.cs
new file mode 100644
index 000000000..b53aad5a9
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseInsertMovie.cs
@@ -0,0 +1,37 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("InsertMovie method response",
+ "InsertMovie method response hold all expected values from server.")]
+ public class MethodResponseInsertMovie : IMethodResponse
+ {
+ public MethodResponseInsertMovie()
+ : base()
+ { }
+ public MethodResponseInsertMovie(string name, string message)
+ : base(name, message)
+ { }
+ private string _ID;
+ public string ID
+ { get { return _ID; } set { _ID = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseInsertMovieHash.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseInsertMovieHash.cs
new file mode 100644
index 000000000..fe9196de8
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseInsertMovieHash.cs
@@ -0,0 +1,38 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System.Collections.Generic;
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("InsertMovieHash method response",
+ "InsertMovieHash method response hold all expected values from server.")]
+ public class MethodResponseInsertMovieHash : IMethodResponse
+ {
+ public MethodResponseInsertMovieHash()
+ : base()
+ { }
+ public MethodResponseInsertMovieHash(string name, string message)
+ : base(name, message)
+ { }
+ private List<string> _accepted_moviehashes = new List<string>();
+ private List<string> _new_imdbs = new List<string>();
+
+ public List<string> accepted_moviehashes { get { return _accepted_moviehashes; } set { _accepted_moviehashes = value; } }
+ public List<string> new_imdbs { get { return _new_imdbs; } set { _new_imdbs = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseLogIn.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseLogIn.cs
new file mode 100644
index 000000000..e7c23f61c
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseLogIn.cs
@@ -0,0 +1,40 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+
+namespace OpenSubtitlesHandler
+{
+ /// <summary>
+ /// Response can be used for log in/out operation.
+ /// </summary>
+ [MethodResponseDescription("LogIn method response",
+ "LogIn method response hold all expected values from server.")]
+ public class MethodResponseLogIn : IMethodResponse
+ {
+ public MethodResponseLogIn()
+ : base()
+ { }
+ public MethodResponseLogIn(string name, string message)
+ : base(name, message)
+ { }
+ private string token;
+
+ public string Token { get { return token; } set { token = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseMovieDetails.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseMovieDetails.cs
new file mode 100644
index 000000000..29e19245c
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseMovieDetails.cs
@@ -0,0 +1,73 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("MovieDetails method response",
+ "MovieDetails method response hold all expected values from server.")]
+ public class MethodResponseMovieDetails : IMethodResponse
+ {
+ public MethodResponseMovieDetails()
+ : base()
+ { }
+ public MethodResponseMovieDetails(string name, string message)
+ : base(name, message)
+ { }
+ // Details
+ private string id;
+ private string title;
+ private string year;
+ private string coverLink;
+
+ private string duration;
+ private string tagline;
+ private string plot;
+ private string goofs;
+ private string trivia;
+ private List<string> cast = new List<string>();
+ private List<string> directors = new List<string>();
+ private List<string> writers = new List<string>();
+ private List<string> awards = new List<string>();
+ private List<string> genres = new List<string>();
+ private List<string> country = new List<string>();
+ private List<string> language = new List<string>();
+ private List<string> certification = new List<string>();
+
+ // Details
+ public string ID { get { return id; } set { id = value; } }
+ public string Title { get { return title; } set { title = value; } }
+ public string Year { get { return year; } set { year = value; } }
+ public string CoverLink { get { return coverLink; } set { coverLink = value; } }
+ public string Duration { get { return duration; } set { duration = value; } }
+ public string Tagline { get { return tagline; } set { tagline = value; } }
+ public string Plot { get { return plot; } set { plot = value; } }
+ public string Goofs { get { return goofs; } set { goofs = value; } }
+ public string Trivia { get { return trivia; } set { trivia = value; } }
+ public List<string> Cast { get { return cast; } set { cast = value; } }
+ public List<string> Directors { get { return directors; } set { directors = value; } }
+ public List<string> Writers { get { return writers; } set { writers = value; } }
+ public List<string> Genres { get { return genres; } set { genres = value; } }
+ public List<string> Awards { get { return awards; } set { awards = value; } }
+ public List<string> Country { get { return country; } set { country = value; } }
+ public List<string> Language { get { return language; } set { language = value; } }
+ public List<string> Certification { get { return certification; } set { certification = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseMovieSearch.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseMovieSearch.cs
new file mode 100644
index 000000000..c1beeeeea
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseMovieSearch.cs
@@ -0,0 +1,43 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("MovieSearch method response",
+ "MovieSearch method response hold all expected values from server.")]
+ public class MethodResponseMovieSearch : IMethodResponse
+ {
+ public MethodResponseMovieSearch()
+ : base()
+ {
+ results = new List<MovieSearchResult>();
+ }
+ public MethodResponseMovieSearch(string name, string message)
+ : base(name, message)
+ {
+ results = new List<MovieSearchResult>();
+ }
+ private List<MovieSearchResult> results;
+
+ public List<MovieSearchResult> Results
+ { get { return results; } set { results = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseNoOperation.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseNoOperation.cs
new file mode 100644
index 000000000..0b5b2f1aa
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseNoOperation.cs
@@ -0,0 +1,53 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("NoOperation method response",
+ "NoOperation method response hold all expected values from server.")]
+ public class MethodResponseNoOperation : IMethodResponse
+ {
+ public MethodResponseNoOperation()
+ : base() { }
+ public MethodResponseNoOperation(string name, string message)
+ : base(name, message)
+ { }
+
+ private string _global_wrh_download_limit;
+ private string _client_ip;
+ private string _limit_check_by;
+ private string _client_24h_download_count;
+ private string _client_downlaod_quota;
+ private string _client_24h_download_limit;
+
+ public string global_wrh_download_limit
+ { get { return _global_wrh_download_limit; } set { _global_wrh_download_limit = value; } }
+ public string client_ip
+ { get { return _client_ip; } set { _client_ip = value; } }
+ public string limit_check_by
+ { get { return _limit_check_by; } set { _limit_check_by = value; } }
+ public string client_24h_download_count
+ { get { return _client_24h_download_count; } set { _client_24h_download_count = value; } }
+ public string client_downlaod_quota
+ { get { return _client_downlaod_quota; } set { _client_downlaod_quota = value; } }
+ public string client_24h_download_limit
+ { get { return _client_24h_download_limit; } set { _client_24h_download_limit = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseReportWrongImdbMovie.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseReportWrongImdbMovie.cs
new file mode 100644
index 000000000..3c19fcf6e
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseReportWrongImdbMovie.cs
@@ -0,0 +1,33 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("ReportWrongImdbMovie method response",
+ "ReportWrongImdbMovie method response hold all expected values from server.")]
+ public class MethodResponseReportWrongImdbMovie : IMethodResponse
+ {
+ public MethodResponseReportWrongImdbMovie()
+ : base()
+ { }
+ public MethodResponseReportWrongImdbMovie(string name, string message)
+ : base(name, message)
+ { }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseReportWrongMovieHash.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseReportWrongMovieHash.cs
new file mode 100644
index 000000000..94788b2c6
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseReportWrongMovieHash.cs
@@ -0,0 +1,34 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("ReportWrongMovieHash method response",
+ "ReportWrongMovieHash method response hold all expected values from server.")]
+ public class MethodResponseReportWrongMovieHash : IMethodResponse
+ {
+ public MethodResponseReportWrongMovieHash()
+ : base()
+ { }
+ public MethodResponseReportWrongMovieHash(string name, string message)
+ : base(name, message)
+ { }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseSearchToMail.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseSearchToMail.cs
new file mode 100644
index 000000000..9f195dea0
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseSearchToMail.cs
@@ -0,0 +1,32 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("SearchToMail method response",
+ "SearchToMail method response hold all expected values from server.")]
+ public class MethodResponseSearchToMail : IMethodResponse
+ {
+ public MethodResponseSearchToMail()
+ : base()
+ { }
+ public MethodResponseSearchToMail(string name, string message)
+ : base(name, message)
+ { }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseServerInfo.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseServerInfo.cs
new file mode 100644
index 000000000..fce5b4245
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseServerInfo.cs
@@ -0,0 +1,132 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("ServerInfo method response",
+ "ServerInfo method response hold all expected values from server.")]
+ public class MethodResponseServerInfo : IMethodResponse
+ {
+ public MethodResponseServerInfo()
+ : base()
+ { }
+ public MethodResponseServerInfo(string name, string message)
+ : base(name, message)
+ { }
+ private string _xmlrpc_version;
+ private string _xmlrpc_url;
+ private string _application;
+ private string _contact;
+ private string _website_url;
+ private int _users_online_total;
+ private int _users_online_program;
+ private int _users_loggedin;
+ private string _users_max_alltime;
+ private string _users_registered;
+ private string _subs_downloads;
+ private string _subs_subtitle_files;
+ private string _movies_total;
+ private string _movies_aka;
+ private string _total_subtitles_languages;
+ private List<string> _last_update_strings = new List<string>();
+
+ /// <summary>
+ /// Version of server's XML-RPC API implementation
+ /// </summary>
+ [Description("Version of server's XML-RPC API implementation"), Category("OS")]
+ public string xmlrpc_version { get { return _xmlrpc_version; } set { _xmlrpc_version = value; } }
+ /// <summary>
+ /// XML-RPC interface URL
+ /// </summary>
+ [Description("XML-RPC interface URL"), Category("OS")]
+ public string xmlrpc_url { get { return _xmlrpc_url; } set { _xmlrpc_url = value; } }
+ /// <summary>
+ /// Server's application name and version
+ /// </summary>
+ [Description("Server's application name and version"), Category("OS")]
+ public string application { get { return _application; } set { _application = value; } }
+ /// <summary>
+ /// Contact e-mail address for server related quuestions and problems
+ /// </summary>
+ [Description("Contact e-mail address for server related quuestions and problems"), Category("OS")]
+ public string contact { get { return _contact; } set { _contact = value; } }
+ /// <summary>
+ /// Main server URL
+ /// </summary>
+ [Description("Main server URL"), Category("OS")]
+ public string website_url { get { return _website_url; } set { _website_url = value; } }
+ /// <summary>
+ /// Number of users currently online
+ /// </summary>
+ [Description("Number of users currently online"), Category("OS")]
+ public int users_online_total { get { return _users_online_total; } set { _users_online_total = value; } }
+ /// <summary>
+ /// Number of users currently online using a client application (XML-RPC API)
+ /// </summary>
+ [Description("Number of users currently online using a client application (XML-RPC API)"), Category("OS")]
+ public int users_online_program { get { return _users_online_program; } set { _users_online_program = value; } }
+ /// <summary>
+ /// Number of currently logged-in users
+ /// </summary>
+ [Description("Number of currently logged-in users"), Category("OS")]
+ public int users_loggedin { get { return _users_loggedin; } set { _users_loggedin = value; } }
+ /// <summary>
+ /// Maximum number of users throughout the history
+ /// </summary>
+ [Description("Maximum number of users throughout the history"), Category("OS")]
+ public string users_max_alltime { get { return _users_max_alltime; } set { _users_max_alltime = value; } }
+ /// <summary>
+ /// Number of registered users
+ /// </summary>
+ [Description("Number of registered users"), Category("OS")]
+ public string users_registered { get { return _users_registered; } set { _users_registered = value; } }
+ /// <summary>
+ /// Total number of subtitle downloads
+ /// </summary>
+ [Description("Total number of subtitle downloads"), Category("OS")]
+ public string subs_downloads { get { return _subs_downloads; } set { _subs_downloads = value; } }
+ /// <summary>
+ /// Total number of subtitle files stored on the server
+ /// </summary>
+ [Description("Total number of subtitle files stored on the server"), Category("OS")]
+ public string subs_subtitle_files { get { return _subs_subtitle_files; } set { _subs_subtitle_files = value; } }
+ /// <summary>
+ /// Total number of movies in the database
+ /// </summary>
+ [Description("Total number of movies in the database"), Category("OS")]
+ public string movies_total { get { return _movies_total; } set { _movies_total = value; } }
+ /// <summary>
+ /// Total number of movie A.K.A. titles in the database
+ /// </summary>
+ [Description("Total number of movie A.K.A. titles in the database"), Category("OS")]
+ public string movies_aka { get { return _movies_aka; } set { _movies_aka = value; } }
+ /// <summary>
+ /// Total number of subtitle languages supported
+ /// </summary>
+ [Description("Total number of subtitle languages supported"), Category("OS")]
+ public string total_subtitles_languages { get { return _total_subtitles_languages; } set { _total_subtitles_languages = value; } }
+ /// <summary>
+ /// Structure containing information about last updates of translations.
+ /// </summary>
+ [Description("Structure containing information about last updates of translations"), Category("OS")]
+ public List<string> last_update_strings { get { return _last_update_strings; } set { _last_update_strings = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitleDownload.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitleDownload.cs
new file mode 100644
index 000000000..7ad9f38ec
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitleDownload.cs
@@ -0,0 +1,44 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+namespace OpenSubtitlesHandler
+{
+ /// <summary>
+ /// The response that should be used by subtitle download methods.
+ /// </summary>
+ [MethodResponseDescription("SubtitleDownload method response",
+ "SubtitleDownload method response hold all expected values from server.")]
+ public class MethodResponseSubtitleDownload : IMethodResponse
+ {
+ public MethodResponseSubtitleDownload()
+ : base()
+ {
+ results = new List<SubtitleDownloadResult>();
+ }
+ public MethodResponseSubtitleDownload(string name, string message)
+ : base(name, message)
+ {
+ results = new List<SubtitleDownloadResult>();
+ }
+ private List<SubtitleDownloadResult> results;
+ public List<SubtitleDownloadResult> Results
+ { get { return results; } set { results = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitleSearch.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitleSearch.cs
new file mode 100644
index 000000000..c359c0ffd
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitleSearch.cs
@@ -0,0 +1,46 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+
+namespace OpenSubtitlesHandler
+{
+ /// <summary>
+ /// Response to SearchSubtitle successed call.
+ /// </summary>
+ [MethodResponseDescription("SubtitleSearch method response",
+ "SubtitleSearch method response hold all expected values from server.")]
+ public class MethodResponseSubtitleSearch : IMethodResponse
+ {
+ public MethodResponseSubtitleSearch()
+ : base()
+ {
+ results = new List<SubtitleSearchResult>();
+ }
+ public MethodResponseSubtitleSearch(string name, string message)
+ : base(name, message)
+ {
+ results = new List<SubtitleSearchResult>();
+ }
+
+ private List<SubtitleSearchResult> results;
+ public List<SubtitleSearchResult> Results
+ { get { return results; } set { results = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitlesVote.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitlesVote.cs
new file mode 100644
index 000000000..1f5364f0c
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseSubtitlesVote.cs
@@ -0,0 +1,44 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("SubtitlesVote method response",
+ "SubtitlesVote method response hold all expected values from server.")]
+ public class MethodResponseSubtitlesVote : IMethodResponse
+ {
+ public MethodResponseSubtitlesVote()
+ : base()
+ { }
+ public MethodResponseSubtitlesVote(string name, string message)
+ : base(name, message)
+ { }
+ private string _SubRating;
+ private string _SubSumVotes;
+ private string _IDSubtitle;
+
+ public string SubRating
+ { get { return _SubRating; } set { _SubRating = value; } }
+ public string SubSumVotes
+ { get { return _SubSumVotes; } set { _SubSumVotes = value; } }
+ public string IDSubtitle
+ { get { return _IDSubtitle; } set { _IDSubtitle = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseTryUploadSubtitles.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseTryUploadSubtitles.cs
new file mode 100644
index 000000000..9dbf1576d
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseTryUploadSubtitles.cs
@@ -0,0 +1,40 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+using System.Collections.Generic;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("TryUploadSubtitles method response",
+ "TryUploadSubtitles method response hold all expected values from server.")]
+ public class MethodResponseTryUploadSubtitles : IMethodResponse
+ {
+ public MethodResponseTryUploadSubtitles()
+ : base()
+ { }
+ public MethodResponseTryUploadSubtitles(string name, string message)
+ : base(name, message)
+ { }
+ private int alreadyindb;
+ private List<SubtitleSearchResult> results = new List<SubtitleSearchResult>();
+
+ public int AlreadyInDB { get { return alreadyindb; } set { alreadyindb = value; } }
+ public List<SubtitleSearchResult> Results { get { return results; } set { results = value; } }
+ }
+}
diff --git a/OpenSubtitlesHandler/MethodResponses/MethodResponseUploadSubtitles.cs b/OpenSubtitlesHandler/MethodResponses/MethodResponseUploadSubtitles.cs
new file mode 100644
index 000000000..3b2320db2
--- /dev/null
+++ b/OpenSubtitlesHandler/MethodResponses/MethodResponseUploadSubtitles.cs
@@ -0,0 +1,39 @@
+/* This file is part of OpenSubtitles Handler
+ A library that handle OpenSubtitles.org XML-RPC methods.
+
+ Copyright © Ala Ibrahim Hadid 2013
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+using System;
+
+namespace OpenSubtitlesHandler
+{
+ [MethodResponseDescription("UploadSubtitles method response",
+ "UploadSubtitles method response hold all expected values from server.")]
+ public class MethodResponseUploadSubtitles : IMethodResponse
+ {
+ public MethodResponseUploadSubtitles()
+ : base()
+ { }
+ public MethodResponseUploadSubtitles(string name, string message)
+ : base(name, message)
+ { }
+ private string _data;
+ private bool _subtitles;
+
+ public string Data { get { return _data; } set { _data = value; } }
+ public bool SubTitles { get { return _subtitles; } set { _subtitles = value; } }
+ }
+}