aboutsummaryrefslogtreecommitdiff
path: root/OpenSubtitlesHandler/MethodResponses/MethodResponseServerInfo.cs
blob: 973550e9f07ad460468d140b4fab8f31c29ee1a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/* 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("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; } }
    }
}