Visual Studio Reformat: OpenSubtitlesHandler

pull/1154/head
Erwin de Haan 6 years ago
parent 9741817af4
commit 9014e16037

@ -17,7 +17,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.ComponentModel;
namespace OpenSubtitlesHandler
{

@ -17,7 +17,6 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System.ComponentModel;
namespace OpenSubtitlesHandler
{

@ -18,7 +18,6 @@
*/
using System.Collections.Generic;
using System.ComponentModel;
namespace OpenSubtitlesHandler
{
[MethodResponseDescription("ServerInfo method response",

@ -19,7 +19,7 @@
namespace OpenSubtitlesHandler
{
public struct SearchToMailMovieParameter
public struct SearchToMailMovieParameter
{
private string _moviehash;
private double _moviesize;

@ -17,10 +17,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Globalization;
using System.Text;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using OpenSubtitlesHandler.Console;
@ -305,7 +305,8 @@ namespace OpenSubtitlesHandler
new XmlRpcValueBasic(param.SubLangaugeID, XmlRpcBasicValueType.String));
strct.Members.Add(member);
// moviehash member
if (param.MovieHash.Length > 0 && param.MovieByteSize > 0) {
if (param.MovieHash.Length > 0 && param.MovieByteSize > 0)
{
member = new XmlRpcStructMember("moviehash",
new XmlRpcValueBasic(param.MovieHash, XmlRpcBasicValueType.String));
strct.Members.Add(member);
@ -314,19 +315,21 @@ namespace OpenSubtitlesHandler
new XmlRpcValueBasic(param.MovieByteSize, XmlRpcBasicValueType.Int));
strct.Members.Add(member);
}
if (param.Query.Length > 0) {
if (param.Query.Length > 0)
{
member = new XmlRpcStructMember("query",
new XmlRpcValueBasic(param.Query, XmlRpcBasicValueType.String));
strct.Members.Add(member);
}
if (param.Episode.Length > 0 && param.Season.Length>0) {
member = new XmlRpcStructMember("season",
new XmlRpcValueBasic(param.Season, XmlRpcBasicValueType.String));
strct.Members.Add(member);
member = new XmlRpcStructMember("episode",
new XmlRpcValueBasic(param.Episode, XmlRpcBasicValueType.String));
strct.Members.Add(member);
if (param.Episode.Length > 0 && param.Season.Length > 0)
{
member = new XmlRpcStructMember("season",
new XmlRpcValueBasic(param.Season, XmlRpcBasicValueType.String));
strct.Members.Add(member);
member = new XmlRpcStructMember("episode",
new XmlRpcValueBasic(param.Episode, XmlRpcBasicValueType.String));
strct.Members.Add(member);
}
// imdbid member

@ -42,19 +42,22 @@ namespace OpenSubtitlesHandler
private string _query;
private string _episode;
public string Episode {
public string Episode
{
get { return _episode; }
set { _episode = value; }
}
public string Season {
public string Season
{
get { return _season; }
set { _season = value; }
}
private string _season;
public string Query {
public string Query
{
get { return _query; }
set { _query = value; }
}
@ -74,6 +77,6 @@ namespace OpenSubtitlesHandler
/// <summary>
/// IMDb ID of movie this video is part of, belongs to.
/// </summary>
public string IMDbID { get { return imdbid; } set { imdbid = value; } }
public string IMDbID { get { return imdbid; } set { imdbid = value; } }
}
}

@ -19,7 +19,7 @@
namespace OpenSubtitlesHandler
{
public class TryUploadSubtitlesParameters
public class TryUploadSubtitlesParameters
{
private string _subhash = "";
private string _subfilename = "";

@ -18,7 +18,6 @@
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Threading;
using System.Threading.Tasks;

@ -17,10 +17,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
using System;
using System.Globalization;
using System.Text;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml;
using OpenSubtitlesHandler;

Loading…
Cancel
Save