Type.registerNamespace('Contoso.Sales.services');
Contoso.Sales.services.AlertService=function() {
Contoso.Sales.services.AlertService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Contoso.Sales.services.AlertService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Contoso.Sales.services.AlertService._staticInstance.get_path();},
CheckUserSignup:function(userId,succeededCallback, failedCallback, userContext) {
/// <param name="userId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'CheckUserSignup',false,{userId:userId},succeededCallback,failedCallback,userContext); },
SendGroupRequest:function(appointment,currentCulture,succeededCallback, failedCallback, userContext) {
/// <param name="appointment" type="Contoso.Common.Entity.Appointment">Contoso.Common.Entity.Appointment</param>
/// <param name="currentCulture" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SendGroupRequest',false,{appointment:appointment,currentCulture:currentCulture},succeededCallback,failedCallback,userContext); }}
Contoso.Sales.services.AlertService.registerClass('Contoso.Sales.services.AlertService',Sys.Net.WebServiceProxy);
Contoso.Sales.services.AlertService._staticInstance = new Contoso.Sales.services.AlertService();
Contoso.Sales.services.AlertService.set_path = function(value) {
Contoso.Sales.services.AlertService._staticInstance.set_path(value); }
Contoso.Sales.services.AlertService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Contoso.Sales.services.AlertService._staticInstance.get_path();}
Contoso.Sales.services.AlertService.set_timeout = function(value) {
Contoso.Sales.services.AlertService._staticInstance.set_timeout(value); }
Contoso.Sales.services.AlertService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Contoso.Sales.services.AlertService._staticInstance.get_timeout(); }
Contoso.Sales.services.AlertService.set_defaultUserContext = function(value) { 
Contoso.Sales.services.AlertService._staticInstance.set_defaultUserContext(value); }
Contoso.Sales.services.AlertService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Contoso.Sales.services.AlertService._staticInstance.get_defaultUserContext(); }
Contoso.Sales.services.AlertService.set_defaultSucceededCallback = function(value) { 
 Contoso.Sales.services.AlertService._staticInstance.set_defaultSucceededCallback(value); }
Contoso.Sales.services.AlertService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Contoso.Sales.services.AlertService._staticInstance.get_defaultSucceededCallback(); }
Contoso.Sales.services.AlertService.set_defaultFailedCallback = function(value) { 
Contoso.Sales.services.AlertService._staticInstance.set_defaultFailedCallback(value); }
Contoso.Sales.services.AlertService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Contoso.Sales.services.AlertService._staticInstance.get_defaultFailedCallback(); }
Contoso.Sales.services.AlertService.set_path("/services/AlertService.asmx");
Contoso.Sales.services.AlertService.CheckUserSignup= function(userId,onSuccess,onFailed,userContext) {
/// <param name="userId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Contoso.Sales.services.AlertService._staticInstance.CheckUserSignup(userId,onSuccess,onFailed,userContext); }
Contoso.Sales.services.AlertService.SendGroupRequest= function(appointment,currentCulture,onSuccess,onFailed,userContext) {
/// <param name="appointment" type="Contoso.Common.Entity.Appointment">Contoso.Common.Entity.Appointment</param>
/// <param name="currentCulture" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Contoso.Sales.services.AlertService._staticInstance.SendGroupRequest(appointment,currentCulture,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Contoso.Common.Entity');
if (typeof(Contoso.Common.Entity.Appointment) === 'undefined') {
Contoso.Common.Entity.Appointment=gtc("Contoso.Common.Entity.Appointment");
Contoso.Common.Entity.Appointment.registerClass('Contoso.Common.Entity.Appointment');
}
