Type.registerNamespace('P42.CMS.Services');
P42.CMS.Services.P42ScriptService=function() {
P42.CMS.Services.P42ScriptService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
P42.CMS.Services.P42ScriptService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return P42.CMS.Services.P42ScriptService._staticInstance.get_path();},
AddUserGenericLogEntry:function(itemId,action,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddUserGenericLogEntry',false,{itemId:itemId,action:action},succeededCallback,failedCallback,userContext); },
GetNextStep:function(methodId,productTypeId,productId,giftUserId,retparams,language,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetNextStep',false,{methodId:methodId,productTypeId:productTypeId,productId:productId,giftUserId:giftUserId,retparams:retparams,language:language},succeededCallback,failedCallback,userContext); },
GetPaymentMethods:function(productTypeId,productId,giftUserId,retparams,preferWallet,language,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPaymentMethods',false,{productTypeId:productTypeId,productId:productId,giftUserId:giftUserId,retparams:retparams,preferWallet:preferWallet,language:language},succeededCallback,failedCallback,userContext); },
IsSMSCompleted:function(transactionId,methodId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsSMSCompleted',false,{transactionId:transactionId,methodId:methodId},succeededCallback,failedCallback,userContext); },
SendMessage:function(userId,subject,message,language,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendMessage',false,{userId:userId,subject:subject,message:message,language:language},succeededCallback,failedCallback,userContext); },
SendFriendInvitation:function(userId,language,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendFriendInvitation',false,{userId:userId,language:language},succeededCallback,failedCallback,userContext); },
RemoveFriend:function(friendId,friendUserId,language,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemoveFriend',false,{friendId:friendId,friendUserId:friendUserId,language:language},succeededCallback,failedCallback,userContext); },
GetGamesForChallenge:function(userId,language,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetGamesForChallenge',false,{userId:userId,language:language},succeededCallback,failedCallback,userContext); },
JoinCompetition:function(competitionId,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'JoinCompetition',false,{competitionId:competitionId},succeededCallback,failedCallback,userContext); },
GetFriends:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetFriends',false,{},succeededCallback,failedCallback,userContext); }}
P42.CMS.Services.P42ScriptService.registerClass('P42.CMS.Services.P42ScriptService',Sys.Net.WebServiceProxy);
P42.CMS.Services.P42ScriptService._staticInstance = new P42.CMS.Services.P42ScriptService();
P42.CMS.Services.P42ScriptService.set_path = function(value) { P42.CMS.Services.P42ScriptService._staticInstance.set_path(value); }
P42.CMS.Services.P42ScriptService.get_path = function() { return P42.CMS.Services.P42ScriptService._staticInstance.get_path(); }
P42.CMS.Services.P42ScriptService.set_timeout = function(value) { P42.CMS.Services.P42ScriptService._staticInstance.set_timeout(value); }
P42.CMS.Services.P42ScriptService.get_timeout = function() { return P42.CMS.Services.P42ScriptService._staticInstance.get_timeout(); }
P42.CMS.Services.P42ScriptService.set_defaultUserContext = function(value) { P42.CMS.Services.P42ScriptService._staticInstance.set_defaultUserContext(value); }
P42.CMS.Services.P42ScriptService.get_defaultUserContext = function() { return P42.CMS.Services.P42ScriptService._staticInstance.get_defaultUserContext(); }
P42.CMS.Services.P42ScriptService.set_defaultSucceededCallback = function(value) { P42.CMS.Services.P42ScriptService._staticInstance.set_defaultSucceededCallback(value); }
P42.CMS.Services.P42ScriptService.get_defaultSucceededCallback = function() { return P42.CMS.Services.P42ScriptService._staticInstance.get_defaultSucceededCallback(); }
P42.CMS.Services.P42ScriptService.set_defaultFailedCallback = function(value) { P42.CMS.Services.P42ScriptService._staticInstance.set_defaultFailedCallback(value); }
P42.CMS.Services.P42ScriptService.get_defaultFailedCallback = function() { return P42.CMS.Services.P42ScriptService._staticInstance.get_defaultFailedCallback(); }
P42.CMS.Services.P42ScriptService.set_path("/Services/P42ScriptService.asmx");
P42.CMS.Services.P42ScriptService.AddUserGenericLogEntry= function(itemId,action,onSuccess,onFailed,userContext) {P42.CMS.Services.P42ScriptService._staticInstance.AddUserGenericLogEntry(itemId,action,onSuccess,onFailed,userContext); }
P42.CMS.Services.P42ScriptService.GetNextStep= function(methodId,productTypeId,productId,giftUserId,retparams,language,onSuccess,onFailed,userContext) {P42.CMS.Services.P42ScriptService._staticInstance.GetNextStep(methodId,productTypeId,productId,giftUserId,retparams,language,onSuccess,onFailed,userContext); }
P42.CMS.Services.P42ScriptService.GetPaymentMethods= function(productTypeId,productId,giftUserId,retparams,preferWallet,language,onSuccess,onFailed,userContext) {P42.CMS.Services.P42ScriptService._staticInstance.GetPaymentMethods(productTypeId,productId,giftUserId,retparams,preferWallet,language,onSuccess,onFailed,userContext); }
P42.CMS.Services.P42ScriptService.IsSMSCompleted= function(transactionId,methodId,onSuccess,onFailed,userContext) {P42.CMS.Services.P42ScriptService._staticInstance.IsSMSCompleted(transactionId,methodId,onSuccess,onFailed,userContext); }
P42.CMS.Services.P42ScriptService.SendMessage= function(userId,subject,message,language,onSuccess,onFailed,userContext) {P42.CMS.Services.P42ScriptService._staticInstance.SendMessage(userId,subject,message,language,onSuccess,onFailed,userContext); }
P42.CMS.Services.P42ScriptService.SendFriendInvitation= function(userId,language,onSuccess,onFailed,userContext) {P42.CMS.Services.P42ScriptService._staticInstance.SendFriendInvitation(userId,language,onSuccess,onFailed,userContext); }
P42.CMS.Services.P42ScriptService.RemoveFriend= function(friendId,friendUserId,language,onSuccess,onFailed,userContext) {P42.CMS.Services.P42ScriptService._staticInstance.RemoveFriend(friendId,friendUserId,language,onSuccess,onFailed,userContext); }
P42.CMS.Services.P42ScriptService.GetGamesForChallenge= function(userId,language,onSuccess,onFailed,userContext) {P42.CMS.Services.P42ScriptService._staticInstance.GetGamesForChallenge(userId,language,onSuccess,onFailed,userContext); }
P42.CMS.Services.P42ScriptService.JoinCompetition= function(competitionId,onSuccess,onFailed,userContext) {P42.CMS.Services.P42ScriptService._staticInstance.JoinCompetition(competitionId,onSuccess,onFailed,userContext); }
P42.CMS.Services.P42ScriptService.GetFriends= function(onSuccess,onFailed,userContext) {P42.CMS.Services.P42ScriptService._staticInstance.GetFriends(onSuccess,onFailed,userContext); }
