var GameService=function() {
GameService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GameService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GameService._staticInstance.get_path();},
GetInitializationData:function(playMode,gameId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetInitializationData',false,{playMode:playMode,gameId:gameId},succeededCallback,failedCallback,userContext); },
GetBalance:function(playMode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetBalance',false,{playMode:playMode},succeededCallback,failedCallback,userContext); },
StartRound:function(playMode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'StartRound',false,{playMode:playMode},succeededCallback,failedCallback,userContext); },
EndRound:function(playMode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'EndRound',false,{playMode:playMode},succeededCallback,failedCallback,userContext); },
AddToFavorite:function(gameId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddToFavorite',false,{gameId:gameId},succeededCallback,failedCallback,userContext); },
CheckInFavorite:function(gameId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckInFavorite',false,{gameId:gameId},succeededCallback,failedCallback,userContext); },
RemoveFromFavorite:function(gameId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveFromFavorite',false,{gameId:gameId},succeededCallback,failedCallback,userContext); },
StartPlayMode:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'StartPlayMode',false,{},succeededCallback,failedCallback,userContext); },
SwitchPlayMode:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SwitchPlayMode',false,{},succeededCallback,failedCallback,userContext); },
GetCashierData:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCashierData',false,{},succeededCallback,failedCallback,userContext); },
GoingToFish:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GoingToFish',false,{},succeededCallback,failedCallback,userContext); },
IAmOnline:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IAmOnline',false,{},succeededCallback,failedCallback,userContext); }}
GameService.registerClass('GameService',Sys.Net.WebServiceProxy);
GameService._staticInstance = new GameService();
GameService.set_path = function(value) { GameService._staticInstance.set_path(value); }
GameService.get_path = function() { return GameService._staticInstance.get_path(); }
GameService.set_timeout = function(value) { GameService._staticInstance.set_timeout(value); }
GameService.get_timeout = function() { return GameService._staticInstance.get_timeout(); }
GameService.set_defaultUserContext = function(value) { GameService._staticInstance.set_defaultUserContext(value); }
GameService.get_defaultUserContext = function() { return GameService._staticInstance.get_defaultUserContext(); }
GameService.set_defaultSucceededCallback = function(value) { GameService._staticInstance.set_defaultSucceededCallback(value); }
GameService.get_defaultSucceededCallback = function() { return GameService._staticInstance.get_defaultSucceededCallback(); }
GameService.set_defaultFailedCallback = function(value) { GameService._staticInstance.set_defaultFailedCallback(value); }
GameService.get_defaultFailedCallback = function() { return GameService._staticInstance.get_defaultFailedCallback(); }
GameService.set_path("/Services/GameService.svc");
GameService.GetInitializationData= function(playMode,gameId,onSuccess,onFailed,userContext) {GameService._staticInstance.GetInitializationData(playMode,gameId,onSuccess,onFailed,userContext); }
GameService.GetBalance= function(playMode,onSuccess,onFailed,userContext) {GameService._staticInstance.GetBalance(playMode,onSuccess,onFailed,userContext); }
GameService.StartRound= function(playMode,onSuccess,onFailed,userContext) {GameService._staticInstance.StartRound(playMode,onSuccess,onFailed,userContext); }
GameService.EndRound= function(playMode,onSuccess,onFailed,userContext) {GameService._staticInstance.EndRound(playMode,onSuccess,onFailed,userContext); }
GameService.AddToFavorite= function(gameId,onSuccess,onFailed,userContext) {GameService._staticInstance.AddToFavorite(gameId,onSuccess,onFailed,userContext); }
GameService.CheckInFavorite= function(gameId,onSuccess,onFailed,userContext) {GameService._staticInstance.CheckInFavorite(gameId,onSuccess,onFailed,userContext); }
GameService.RemoveFromFavorite= function(gameId,onSuccess,onFailed,userContext) {GameService._staticInstance.RemoveFromFavorite(gameId,onSuccess,onFailed,userContext); }
GameService.StartPlayMode= function(onSuccess,onFailed,userContext) {GameService._staticInstance.StartPlayMode(onSuccess,onFailed,userContext); }
GameService.SwitchPlayMode= function(onSuccess,onFailed,userContext) {GameService._staticInstance.SwitchPlayMode(onSuccess,onFailed,userContext); }
GameService.GetCashierData= function(onSuccess,onFailed,userContext) {GameService._staticInstance.GetCashierData(onSuccess,onFailed,userContext); }
GameService.GoingToFish= function(onSuccess,onFailed,userContext) {GameService._staticInstance.GoingToFish(onSuccess,onFailed,userContext); }
GameService.IAmOnline= function(onSuccess,onFailed,userContext) {GameService._staticInstance.IAmOnline(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('InstantGames.Services');
if (typeof(InstantGames.Services.BankrollData) === 'undefined') {
InstantGames.Services.BankrollData=gtc("BankrollData:http://schemas.datacontract.org/2004/07/InstantGames.Services");
InstantGames.Services.BankrollData.registerClass('InstantGames.Services.BankrollData');
}
Type.registerNamespace('InstantGames.Services.Cashier');
if (typeof(InstantGames.Services.Cashier.CashierData) === 'undefined') {
InstantGames.Services.Cashier.CashierData=gtc("CashierData:http://schemas.datacontract.org/2004/07/InstantGames.Services.Cashier");
InstantGames.Services.Cashier.CashierData.registerClass('InstantGames.Services.Cashier.CashierData');
}
