var ModernService=function() {
ModernService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ModernService.prototype={
CreateVote:function(PollID,OptionID,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'CreateVote',false,{PollID:PollID,OptionID:OptionID},succeededCallback,failedCallback,userContext); },
GetPollsCount:function(PageSize,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'GetPollsCount',false,{PageSize:PageSize},succeededCallback,failedCallback,userContext); },
EditOption:function(OptionID,OptionText,PollID,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'EditOption',false,{OptionID:OptionID,OptionText:OptionText,PollID:PollID},succeededCallback,failedCallback,userContext); },
DeleteOption:function(OptionID,PollID,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'DeleteOption',false,{OptionID:OptionID,PollID:PollID},succeededCallback,failedCallback,userContext); },
CheckUserName:function(UserName,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'CheckUserName',false,{UserName:UserName},succeededCallback,failedCallback,userContext); },
CheckUserEmail:function(email,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'CheckUserEmail',false,{email:email},succeededCallback,failedCallback,userContext); },
LoadPlayers:function(MatchID,TournamentID,HomeTeamID,VisitorTeamID,HomeNum,VisNum,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'LoadPlayers',false,{MatchID:MatchID,TournamentID:TournamentID,HomeTeamID:HomeTeamID,VisitorTeamID:VisitorTeamID,HomeNum:HomeNum,VisNum:VisNum},succeededCallback,failedCallback,userContext); },
AddMatchResult:function(MatchID,TournamentID,HomeScore,VisitorScore,WSF,HomeLst,VisitorLst,Penalties,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'AddMatchResult',false,{MatchID:MatchID,TournamentID:TournamentID,HomeScore:HomeScore,VisitorScore:VisitorScore,WSF:WSF,HomeLst:HomeLst,VisitorLst:VisitorLst,Penalties:Penalties},succeededCallback,failedCallback,userContext); },
LoadTournaments:function(InArabic,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'LoadTournaments',false,{InArabic:InArabic},succeededCallback,failedCallback,userContext); },
LoadMatches:function(InArabic,TourID,TourName,TourLogo,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'LoadMatches',false,{InArabic:InArabic,TourID:TourID,TourName:TourName,TourLogo:TourLogo},succeededCallback,failedCallback,userContext); },
LoadUserRank:function(TourID,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'LoadUserRank',false,{TourID:TourID},succeededCallback,failedCallback,userContext); },
LoadTopN:function(TourID,N,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'LoadTopN',false,{TourID:TourID,N:N},succeededCallback,failedCallback,userContext); },
LoadHelp:function(TourID,INEnglish,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'LoadHelp',false,{TourID:TourID,INEnglish:INEnglish},succeededCallback,failedCallback,userContext); },
LoadPlayerHistory:function(TourID,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'LoadPlayerHistory',false,{TourID:TourID},succeededCallback,failedCallback,userContext); },
AddPredict:function(MatchID,TournamentID,HomeScore,VisitorScore,WSF,HomeLst,VisitorLst,useJoker,Penalties,succeededCallback, failedCallback, userContext) {
return this._invoke(ModernService.get_path(), 'AddPredict',false,{MatchID:MatchID,TournamentID:TournamentID,HomeScore:HomeScore,VisitorScore:VisitorScore,WSF:WSF,HomeLst:HomeLst,VisitorLst:VisitorLst,useJoker:useJoker,Penalties:Penalties},succeededCallback,failedCallback,userContext); }}
ModernService.registerClass('ModernService',Sys.Net.WebServiceProxy);
ModernService._staticInstance = new ModernService();
ModernService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; ModernService._staticInstance._path = value; }
ModernService.get_path = function() { return ModernService._staticInstance._path; }
ModernService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
ModernService._staticInstance._timeout = value; }
ModernService.get_timeout = function() { 
return ModernService._staticInstance._timeout; }
ModernService.set_defaultUserContext = function(value) { 
ModernService._staticInstance._userContext = value; }
ModernService.get_defaultUserContext = function() { 
return ModernService._staticInstance._userContext; }
ModernService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; ModernService._staticInstance._succeeded = value; }
ModernService.get_defaultSucceededCallback = function() { 
return ModernService._staticInstance._succeeded; }
ModernService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; ModernService._staticInstance._failed = value; }
ModernService.get_defaultFailedCallback = function() { 
return ModernService._staticInstance._failed; }
ModernService.set_path("/WS/ModernService.asmx");
ModernService.CreateVote= function(PollID,OptionID,onSuccess,onFailed,userContext) {ModernService._staticInstance.CreateVote(PollID,OptionID,onSuccess,onFailed,userContext); }
ModernService.GetPollsCount= function(PageSize,onSuccess,onFailed,userContext) {ModernService._staticInstance.GetPollsCount(PageSize,onSuccess,onFailed,userContext); }
ModernService.EditOption= function(OptionID,OptionText,PollID,onSuccess,onFailed,userContext) {ModernService._staticInstance.EditOption(OptionID,OptionText,PollID,onSuccess,onFailed,userContext); }
ModernService.DeleteOption= function(OptionID,PollID,onSuccess,onFailed,userContext) {ModernService._staticInstance.DeleteOption(OptionID,PollID,onSuccess,onFailed,userContext); }
ModernService.CheckUserName= function(UserName,onSuccess,onFailed,userContext) {ModernService._staticInstance.CheckUserName(UserName,onSuccess,onFailed,userContext); }
ModernService.CheckUserEmail= function(email,onSuccess,onFailed,userContext) {ModernService._staticInstance.CheckUserEmail(email,onSuccess,onFailed,userContext); }
ModernService.LoadPlayers= function(MatchID,TournamentID,HomeTeamID,VisitorTeamID,HomeNum,VisNum,onSuccess,onFailed,userContext) {ModernService._staticInstance.LoadPlayers(MatchID,TournamentID,HomeTeamID,VisitorTeamID,HomeNum,VisNum,onSuccess,onFailed,userContext); }
ModernService.AddMatchResult= function(MatchID,TournamentID,HomeScore,VisitorScore,WSF,HomeLst,VisitorLst,Penalties,onSuccess,onFailed,userContext) {ModernService._staticInstance.AddMatchResult(MatchID,TournamentID,HomeScore,VisitorScore,WSF,HomeLst,VisitorLst,Penalties,onSuccess,onFailed,userContext); }
ModernService.LoadTournaments= function(InArabic,onSuccess,onFailed,userContext) {ModernService._staticInstance.LoadTournaments(InArabic,onSuccess,onFailed,userContext); }
ModernService.LoadMatches= function(InArabic,TourID,TourName,TourLogo,onSuccess,onFailed,userContext) {ModernService._staticInstance.LoadMatches(InArabic,TourID,TourName,TourLogo,onSuccess,onFailed,userContext); }
ModernService.LoadUserRank= function(TourID,onSuccess,onFailed,userContext) {ModernService._staticInstance.LoadUserRank(TourID,onSuccess,onFailed,userContext); }
ModernService.LoadTopN= function(TourID,N,onSuccess,onFailed,userContext) {ModernService._staticInstance.LoadTopN(TourID,N,onSuccess,onFailed,userContext); }
ModernService.LoadHelp= function(TourID,INEnglish,onSuccess,onFailed,userContext) {ModernService._staticInstance.LoadHelp(TourID,INEnglish,onSuccess,onFailed,userContext); }
ModernService.LoadPlayerHistory= function(TourID,onSuccess,onFailed,userContext) {ModernService._staticInstance.LoadPlayerHistory(TourID,onSuccess,onFailed,userContext); }
ModernService.AddPredict= function(MatchID,TournamentID,HomeScore,VisitorScore,WSF,HomeLst,VisitorLst,useJoker,Penalties,onSuccess,onFailed,userContext) {ModernService._staticInstance.AddPredict(MatchID,TournamentID,HomeScore,VisitorScore,WSF,HomeLst,VisitorLst,useJoker,Penalties,onSuccess,onFailed,userContext); }
