Type.registerNamespace('maetbew');
maetbew.GamesService=function() {
maetbew.GamesService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
maetbew.GamesService.prototype={
SubmitScore:function(score,username,gamename,succeededCallback, failedCallback, userContext) {
return this._invoke(maetbew.GamesService.get_path(), 'SubmitScore',false,{score:score,username:username,gamename:gamename},succeededCallback,failedCallback,userContext); },
GetPlayer:function(username,gamename,succeededCallback, failedCallback, userContext) {
return this._invoke(maetbew.GamesService.get_path(), 'GetPlayer',false,{username:username,gamename:gamename},succeededCallback,failedCallback,userContext); },
GetPlayers:function(Category,gamename,numberofresults,succeededCallback, failedCallback, userContext) {
return this._invoke(maetbew.GamesService.get_path(), 'GetPlayers',false,{Category:Category,gamename:gamename,numberofresults:numberofresults},succeededCallback,failedCallback,userContext); }}
maetbew.GamesService.registerClass('maetbew.GamesService',Sys.Net.WebServiceProxy);
maetbew.GamesService._staticInstance = new maetbew.GamesService();
maetbew.GamesService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; maetbew.GamesService._staticInstance._path = value; }
maetbew.GamesService.get_path = function() { return maetbew.GamesService._staticInstance._path; }
maetbew.GamesService.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); }
maetbew.GamesService._staticInstance._timeout = value; }
maetbew.GamesService.get_timeout = function() { 
return maetbew.GamesService._staticInstance._timeout; }
maetbew.GamesService.set_defaultUserContext = function(value) { 
maetbew.GamesService._staticInstance._userContext = value; }
maetbew.GamesService.get_defaultUserContext = function() { 
return maetbew.GamesService._staticInstance._userContext; }
maetbew.GamesService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; maetbew.GamesService._staticInstance._succeeded = value; }
maetbew.GamesService.get_defaultSucceededCallback = function() { 
return maetbew.GamesService._staticInstance._succeeded; }
maetbew.GamesService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; maetbew.GamesService._staticInstance._failed = value; }
maetbew.GamesService.get_defaultFailedCallback = function() { 
return maetbew.GamesService._staticInstance._failed; }
maetbew.GamesService.set_path("/Services/GamesService.asmx");
maetbew.GamesService.SubmitScore= function(score,username,gamename,onSuccess,onFailed,userContext) {maetbew.GamesService._staticInstance.SubmitScore(score,username,gamename,onSuccess,onFailed,userContext); }
maetbew.GamesService.GetPlayer= function(username,gamename,onSuccess,onFailed,userContext) {maetbew.GamesService._staticInstance.GetPlayer(username,gamename,onSuccess,onFailed,userContext); }
maetbew.GamesService.GetPlayers= function(Category,gamename,numberofresults,onSuccess,onFailed,userContext) {maetbew.GamesService._staticInstance.GetPlayers(Category,gamename,numberofresults,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(maetbew.GamesService_ResultList) === 'undefined') {
maetbew.GamesService_ResultList=gtc("maetbew.GamesService+ResultList");
maetbew.GamesService_ResultList.registerClass('maetbew.GamesService_ResultList');
}
