Type.registerNamespace('WLQuickApps.ContosoBank.Services');
WLQuickApps.ContosoBank.Services.ContosoBankService=function() {
WLQuickApps.ContosoBank.Services.ContosoBankService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WLQuickApps.ContosoBank.Services.ContosoBankService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.get_path();},
AddAppointment:function(advisorId,appointmentDate,appointmentSlot,succeededCallback, failedCallback, userContext) {
/// <param name="advisorId" type="Number">System.Int32</param>
/// <param name="appointmentDate" type="Date">System.DateTime</param>
/// <param name="appointmentSlot" type="Number">System.Int32</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(), 'AddAppointment',false,{advisorId:advisorId,appointmentDate:appointmentDate,appointmentSlot:appointmentSlot},succeededCallback,failedCallback,userContext); },
GetClusteredMapData:function(encodedBounds,zoomLevel,users,succeededCallback, failedCallback, userContext) {
/// <param name="encodedBounds" type="String">System.String</param>
/// <param name="zoomLevel" type="Number">System.Int32</param>
/// <param name="users" type="Boolean">System.Boolean</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(), 'GetClusteredMapData',false,{encodedBounds:encodedBounds,zoomLevel:zoomLevel,users:users},succeededCallback,failedCallback,userContext); },
GetEventByID:function(id,succeededCallback, failedCallback, userContext) {
/// <param name="id" type="Number">System.Int32</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(), 'GetEventByID',false,{id:id},succeededCallback,failedCallback,userContext); },
GetBackgroundByName:function(backgroundName,succeededCallback, failedCallback, userContext) {
/// <param name="backgroundName" 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(), 'GetBackgroundByName',false,{backgroundName:backgroundName},succeededCallback,failedCallback,userContext); },
GetContosoCupLeaderBoard:function(succeededCallback, failedCallback, userContext) {
/// <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(), 'GetContosoCupLeaderBoard',false,{},succeededCallback,failedCallback,userContext); }}
WLQuickApps.ContosoBank.Services.ContosoBankService.registerClass('WLQuickApps.ContosoBank.Services.ContosoBankService',Sys.Net.WebServiceProxy);
WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance = new WLQuickApps.ContosoBank.Services.ContosoBankService();
WLQuickApps.ContosoBank.Services.ContosoBankService.set_path = function(value) {
WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.set_path(value); }
WLQuickApps.ContosoBank.Services.ContosoBankService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.get_path();}
WLQuickApps.ContosoBank.Services.ContosoBankService.set_timeout = function(value) {
WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.set_timeout(value); }
WLQuickApps.ContosoBank.Services.ContosoBankService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.get_timeout(); }
WLQuickApps.ContosoBank.Services.ContosoBankService.set_defaultUserContext = function(value) { 
WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.set_defaultUserContext(value); }
WLQuickApps.ContosoBank.Services.ContosoBankService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.get_defaultUserContext(); }
WLQuickApps.ContosoBank.Services.ContosoBankService.set_defaultSucceededCallback = function(value) { 
 WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.set_defaultSucceededCallback(value); }
WLQuickApps.ContosoBank.Services.ContosoBankService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.get_defaultSucceededCallback(); }
WLQuickApps.ContosoBank.Services.ContosoBankService.set_defaultFailedCallback = function(value) { 
WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.set_defaultFailedCallback(value); }
WLQuickApps.ContosoBank.Services.ContosoBankService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.get_defaultFailedCallback(); }
WLQuickApps.ContosoBank.Services.ContosoBankService.set_path("/Services/ContosoBankService.asmx");
WLQuickApps.ContosoBank.Services.ContosoBankService.AddAppointment= function(advisorId,appointmentDate,appointmentSlot,onSuccess,onFailed,userContext) {
/// <param name="advisorId" type="Number">System.Int32</param>
/// <param name="appointmentDate" type="Date">System.DateTime</param>
/// <param name="appointmentSlot" type="Number">System.Int32</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>
WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.AddAppointment(advisorId,appointmentDate,appointmentSlot,onSuccess,onFailed,userContext); }
WLQuickApps.ContosoBank.Services.ContosoBankService.GetClusteredMapData= function(encodedBounds,zoomLevel,users,onSuccess,onFailed,userContext) {
/// <param name="encodedBounds" type="String">System.String</param>
/// <param name="zoomLevel" type="Number">System.Int32</param>
/// <param name="users" type="Boolean">System.Boolean</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>
WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.GetClusteredMapData(encodedBounds,zoomLevel,users,onSuccess,onFailed,userContext); }
WLQuickApps.ContosoBank.Services.ContosoBankService.GetEventByID= function(id,onSuccess,onFailed,userContext) {
/// <param name="id" type="Number">System.Int32</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>
WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.GetEventByID(id,onSuccess,onFailed,userContext); }
WLQuickApps.ContosoBank.Services.ContosoBankService.GetBackgroundByName= function(backgroundName,onSuccess,onFailed,userContext) {
/// <param name="backgroundName" 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>
WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.GetBackgroundByName(backgroundName,onSuccess,onFailed,userContext); }
WLQuickApps.ContosoBank.Services.ContosoBankService.GetContosoCupLeaderBoard= function(onSuccess,onFailed,userContext) {
/// <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>
WLQuickApps.ContosoBank.Services.ContosoBankService._staticInstance.GetContosoCupLeaderBoard(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('WLQuickApps.ContosoBank.Entity');
if (typeof(WLQuickApps.ContosoBank.Entity.LocalEvent) === 'undefined') {
WLQuickApps.ContosoBank.Entity.LocalEvent=gtc("WLQuickApps.ContosoBank.Entity.LocalEvent");
WLQuickApps.ContosoBank.Entity.LocalEvent.registerClass('WLQuickApps.ContosoBank.Entity.LocalEvent');
}
if (typeof(WLQuickApps.ContosoBank.Entity.Background) === 'undefined') {
WLQuickApps.ContosoBank.Entity.Background=gtc("WLQuickApps.ContosoBank.Entity.Background");
WLQuickApps.ContosoBank.Entity.Background.registerClass('WLQuickApps.ContosoBank.Entity.Background');
}
if (typeof(WLQuickApps.ContosoBank.Entity.ContosoCup) === 'undefined') {
WLQuickApps.ContosoBank.Entity.ContosoCup=gtc("WLQuickApps.ContosoBank.Entity.ContosoCup");
WLQuickApps.ContosoBank.Entity.ContosoCup.registerClass('WLQuickApps.ContosoBank.Entity.ContosoCup');
}
