check in open subtitles stub

This commit is contained in:
Luke Pulverenti
2014-05-05 00:36:45 -04:00
parent 8aadbf3513
commit ac69327f1f
72 changed files with 6347 additions and 17 deletions

View File

@@ -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)
{ }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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)
{ }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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)
{ }
}
}

View File

@@ -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)
{ }
}
}

View File

@@ -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)
{ }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}

View File

@@ -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; } }
}
}