/// <summary> /// /// </summary> /// <returns></returns> public static OSServerInfo GetServerInfo() { IOpenSubtitles proxy = XmlRpcProxyGen.Create <IOpenSubtitles>(); XmlRpcStruct ResponseStruct = proxy.GetServerInfo(); OSServerInfo serverInfo = new OSServerInfo(); serverInfo.Application = (string)ResponseStruct["application"]; serverInfo.Contact = (string)ResponseStruct["contact"]; serverInfo.SubsSubtitleFiles = (string)ResponseStruct["subs_subtitle_files"]; serverInfo.XmlRpcVersion = (string)ResponseStruct["xmlrpc_version"]; serverInfo.TotalUsersOnline = (string)ResponseStruct["users_online_total"]; serverInfo.TotalSubsDownload = (string)ResponseStruct["subs_downloads"]; serverInfo.TotalSubtitlesLanguages = (string)ResponseStruct["total_subtitles_languages"]; serverInfo.UsersLoggedIn = (string)ResponseStruct["users_loggedin"]; serverInfo.MoviesAka = (string)ResponseStruct["movies_aka"]; serverInfo.UsersRegistred = (string)ResponseStruct["users_registered"]; serverInfo.TotalMoviesCount = (string)ResponseStruct["movies_total"]; serverInfo.WebsiteUrl = (string)ResponseStruct["website_url"]; serverInfo.UsersOnlineProgram = (string)ResponseStruct["users_online_program"]; serverInfo.XmlRpcUrl = (string)ResponseStruct["xmlrpc_url"]; serverInfo.UsersMaxAllTime = (string)ResponseStruct["users_max_alltime"]; return(serverInfo); }
/// <summary> /// /// </summary> /// <returns></returns> public static OSServerInfo GetServerInfo() { IOpenSubtitles proxy = XmlRpcProxyGen.Create<IOpenSubtitles>(); XmlRpcStruct ResponseStruct = proxy.GetServerInfo(); OSServerInfo serverInfo = new OSServerInfo(); serverInfo.Application = (string)ResponseStruct["application"]; serverInfo.Contact = (string)ResponseStruct["contact"]; serverInfo.SubsSubtitleFiles = (string)ResponseStruct["subs_subtitle_files"]; serverInfo.XmlRpcVersion = (string)ResponseStruct["xmlrpc_version"]; serverInfo.TotalUsersOnline = (string)ResponseStruct["users_online_total"]; serverInfo.TotalSubsDownload = (string)ResponseStruct["subs_downloads"]; serverInfo.TotalSubtitlesLanguages = (string)ResponseStruct["total_subtitles_languages"]; serverInfo.UsersLoggedIn = (string)ResponseStruct["users_loggedin"]; serverInfo.MoviesAka = (string)ResponseStruct["movies_aka"]; serverInfo.UsersRegistred = (string)ResponseStruct["users_registered"]; serverInfo.TotalMoviesCount = (string)ResponseStruct["movies_total"]; serverInfo.WebsiteUrl = (string)ResponseStruct["website_url"]; serverInfo.UsersOnlineProgram = (string)ResponseStruct["users_online_program"]; serverInfo.XmlRpcUrl = (string)ResponseStruct["xmlrpc_url"]; serverInfo.UsersMaxAllTime = (string)ResponseStruct["users_max_alltime"]; return serverInfo; }