Type.registerNamespace('TVGuide');
TVGuide.MAPProxy=function() {
TVGuide.MAPProxy.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
TVGuide.MAPProxy.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return TVGuide.MAPProxy._staticInstance.get_path();},
CheckUserName:function(UserName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckUserName',false,{UserName:UserName},succeededCallback,failedCallback,userContext); },
CheckEmailUniqueness:function(UserEmail,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckEmailUniqueness',false,{UserEmail:UserEmail},succeededCallback,failedCallback,userContext); },
CheckUserNameUniqueness:function(UserName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckUserNameUniqueness',false,{UserName:UserName},succeededCallback,failedCallback,userContext); },
RateThis:function(UserName,ObjectID,Rating,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RateThis',false,{UserName:UserName,ObjectID:ObjectID,Rating:Rating},succeededCallback,failedCallback,userContext); },
CheckPassword:function(Password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CheckPassword',false,{Password:Password},succeededCallback,failedCallback,userContext); },
Authenticate:function(UserName,Password,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Authenticate',false,{UserName:UserName,Password:Password},succeededCallback,failedCallback,userContext); },
CreateQuickRegisterUserAndProfile:function(UserName,Password,EMail,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateQuickRegisterUserAndProfile',false,{UserName:UserName,Password:Password,EMail:EMail},succeededCallback,failedCallback,userContext); },
CreateUser:function(UserName,Password,EMail,PasswordQuestion,PasswordAnswer,IsApproved,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateUser',false,{UserName:UserName,Password:Password,EMail:EMail,PasswordQuestion:PasswordQuestion,PasswordAnswer:PasswordAnswer,IsApproved:IsApproved},succeededCallback,failedCallback,userContext); },
SubscribeNewsletters:function(UserName,SubscriptionList,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SubscribeNewsletters',false,{UserName:UserName,SubscriptionList:SubscriptionList},succeededCallback,failedCallback,userContext); }}
TVGuide.MAPProxy.registerClass('TVGuide.MAPProxy',Sys.Net.WebServiceProxy);
TVGuide.MAPProxy._staticInstance = new TVGuide.MAPProxy();
TVGuide.MAPProxy.set_path = function(value) { TVGuide.MAPProxy._staticInstance.set_path(value); }
TVGuide.MAPProxy.get_path = function() { return TVGuide.MAPProxy._staticInstance.get_path(); }
TVGuide.MAPProxy.set_timeout = function(value) { TVGuide.MAPProxy._staticInstance.set_timeout(value); }
TVGuide.MAPProxy.get_timeout = function() { return TVGuide.MAPProxy._staticInstance.get_timeout(); }
TVGuide.MAPProxy.set_defaultUserContext = function(value) { TVGuide.MAPProxy._staticInstance.set_defaultUserContext(value); }
TVGuide.MAPProxy.get_defaultUserContext = function() { return TVGuide.MAPProxy._staticInstance.get_defaultUserContext(); }
TVGuide.MAPProxy.set_defaultSucceededCallback = function(value) { TVGuide.MAPProxy._staticInstance.set_defaultSucceededCallback(value); }
TVGuide.MAPProxy.get_defaultSucceededCallback = function() { return TVGuide.MAPProxy._staticInstance.get_defaultSucceededCallback(); }
TVGuide.MAPProxy.set_defaultFailedCallback = function(value) { TVGuide.MAPProxy._staticInstance.set_defaultFailedCallback(value); }
TVGuide.MAPProxy.get_defaultFailedCallback = function() { return TVGuide.MAPProxy._staticInstance.get_defaultFailedCallback(); }
TVGuide.MAPProxy.set_path("/PROXIES/MAPProxy.svc");
TVGuide.MAPProxy.CheckUserName= function(UserName,onSuccess,onFailed,userContext) {TVGuide.MAPProxy._staticInstance.CheckUserName(UserName,onSuccess,onFailed,userContext); }
TVGuide.MAPProxy.CheckEmailUniqueness= function(UserEmail,onSuccess,onFailed,userContext) {TVGuide.MAPProxy._staticInstance.CheckEmailUniqueness(UserEmail,onSuccess,onFailed,userContext); }
TVGuide.MAPProxy.CheckUserNameUniqueness= function(UserName,onSuccess,onFailed,userContext) {TVGuide.MAPProxy._staticInstance.CheckUserNameUniqueness(UserName,onSuccess,onFailed,userContext); }
TVGuide.MAPProxy.RateThis= function(UserName,ObjectID,Rating,onSuccess,onFailed,userContext) {TVGuide.MAPProxy._staticInstance.RateThis(UserName,ObjectID,Rating,onSuccess,onFailed,userContext); }
TVGuide.MAPProxy.CheckPassword= function(Password,onSuccess,onFailed,userContext) {TVGuide.MAPProxy._staticInstance.CheckPassword(Password,onSuccess,onFailed,userContext); }
TVGuide.MAPProxy.Authenticate= function(UserName,Password,onSuccess,onFailed,userContext) {TVGuide.MAPProxy._staticInstance.Authenticate(UserName,Password,onSuccess,onFailed,userContext); }
TVGuide.MAPProxy.CreateQuickRegisterUserAndProfile= function(UserName,Password,EMail,onSuccess,onFailed,userContext) {TVGuide.MAPProxy._staticInstance.CreateQuickRegisterUserAndProfile(UserName,Password,EMail,onSuccess,onFailed,userContext); }
TVGuide.MAPProxy.CreateUser= function(UserName,Password,EMail,PasswordQuestion,PasswordAnswer,IsApproved,onSuccess,onFailed,userContext) {TVGuide.MAPProxy._staticInstance.CreateUser(UserName,Password,EMail,PasswordQuestion,PasswordAnswer,IsApproved,onSuccess,onFailed,userContext); }
TVGuide.MAPProxy.SubscribeNewsletters= function(UserName,SubscriptionList,onSuccess,onFailed,userContext) {TVGuide.MAPProxy._staticInstance.SubscribeNewsletters(UserName,SubscriptionList,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(SubscriptionItem) === 'undefined') {
var SubscriptionItem=gtc("SubscriptionItem:http://schemas.datacontract.org/2004/07/");
SubscriptionItem.registerClass('SubscriptionItem');
}
Type.registerNamespace('MAPService');
if (typeof(MAPService.CheckUserNameResult) === 'undefined') {
MAPService.CheckUserNameResult = function() { throw Error.invalidOperation(); }
MAPService.CheckUserNameResult.prototype = {NotUnique: 0,Inappropriate: 1,Valid: 2}
MAPService.CheckUserNameResult.registerEnum('MAPService.CheckUserNameResult', true);
}
if (typeof(MAPService.AuthenticationResult) === 'undefined') {
MAPService.AuthenticationResult = function() { throw Error.invalidOperation(); }
MAPService.AuthenticationResult.prototype = {Authenticated: 0,AuthenticationFailed: 1,NotApproved: 2,NotApproved_QuickRegister: 3,NotRegistered: 4,AuthenticatedButBanned: 5}
MAPService.AuthenticationResult.registerEnum('MAPService.AuthenticationResult', true);
}
