Type.registerNamespace('Sitecore.Modules.EventCalendar.Services');
Sitecore.Modules.EventCalendar.Services.WebService=function() {
Sitecore.Modules.EventCalendar.Services.WebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Sitecore.Modules.EventCalendar.Services.WebService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.get_path();},
MoveEvent:function(eventID,newDate,startTime,endTime,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MoveEvent',false,{eventID:eventID,newDate:newDate,startTime:startTime,endTime:endTime},succeededCallback,failedCallback,userContext); },
UpdateTime:function(eventID,startTime,endTime,updateSeries,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateTime',false,{eventID:eventID,startTime:startTime,endTime:endTime,updateSeries:updateSeries},succeededCallback,failedCallback,userContext); },
CreateEvent:function(ev,schedule,options,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateEvent',false,{ev:ev,schedule:schedule,options:options},succeededCallback,failedCallback,userContext); },
DeleteEvent:function(eventID,deleteSeries,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'DeleteEvent',false,{eventID:eventID,deleteSeries:deleteSeries},succeededCallback,failedCallback,userContext); },
SaveEventInfo:function(evnt,schedule,updateSeries,options,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveEventInfo',false,{evnt:evnt,schedule:schedule,updateSeries:updateSeries,options:options},succeededCallback,failedCallback,userContext); },
GetEventInfo:function(eventID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetEventInfo',false,{eventID:eventID},succeededCallback,failedCallback,userContext); },
GetScheduleInfo:function(scheduleID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetScheduleInfo',false,{scheduleID:scheduleID},succeededCallback,failedCallback,userContext); },
GetCalendarsList:function(canWrite,options,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCalendarsList',false,{canWrite:canWrite,options:options},succeededCallback,failedCallback,userContext); },
GetCalendar:function(eventID,options,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetCalendar',false,{eventID:eventID,options:options},succeededCallback,failedCallback,userContext); },
IsRecurrent:function(eventID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsRecurrent',false,{eventID:eventID},succeededCallback,failedCallback,userContext); },
GetHTMLDayInMonthView:function(date,options,startHour,hour,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetHTMLDayInMonthView',false,{date:date,options:options,startHour:startHour,hour:hour},succeededCallback,failedCallback,userContext); },
GetViewHTML:function(num,startHour,viewName,currentView,hour,options,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetViewHTML',false,{num:num,startHour:startHour,viewName:viewName,currentView:currentView,hour:hour,options:options},succeededCallback,failedCallback,userContext); }}
Sitecore.Modules.EventCalendar.Services.WebService.registerClass('Sitecore.Modules.EventCalendar.Services.WebService',Sys.Net.WebServiceProxy);
Sitecore.Modules.EventCalendar.Services.WebService._staticInstance = new Sitecore.Modules.EventCalendar.Services.WebService();
Sitecore.Modules.EventCalendar.Services.WebService.set_path = function(value) { Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.set_path(value); }
Sitecore.Modules.EventCalendar.Services.WebService.get_path = function() { return Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.get_path(); }
Sitecore.Modules.EventCalendar.Services.WebService.set_timeout = function(value) { Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.set_timeout(value); }
Sitecore.Modules.EventCalendar.Services.WebService.get_timeout = function() { return Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.get_timeout(); }
Sitecore.Modules.EventCalendar.Services.WebService.set_defaultUserContext = function(value) { Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.set_defaultUserContext(value); }
Sitecore.Modules.EventCalendar.Services.WebService.get_defaultUserContext = function() { return Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.get_defaultUserContext(); }
Sitecore.Modules.EventCalendar.Services.WebService.set_defaultSucceededCallback = function(value) { Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.set_defaultSucceededCallback(value); }
Sitecore.Modules.EventCalendar.Services.WebService.get_defaultSucceededCallback = function() { return Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.get_defaultSucceededCallback(); }
Sitecore.Modules.EventCalendar.Services.WebService.set_defaultFailedCallback = function(value) { Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.set_defaultFailedCallback(value); }
Sitecore.Modules.EventCalendar.Services.WebService.get_defaultFailedCallback = function() { return Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.get_defaultFailedCallback(); }
Sitecore.Modules.EventCalendar.Services.WebService.set_path("/sitecore%20modules/web/sitecore.calendar/logic/services/webservice.asmx");
Sitecore.Modules.EventCalendar.Services.WebService.MoveEvent= function(eventID,newDate,startTime,endTime,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.MoveEvent(eventID,newDate,startTime,endTime,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.UpdateTime= function(eventID,startTime,endTime,updateSeries,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.UpdateTime(eventID,startTime,endTime,updateSeries,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.CreateEvent= function(ev,schedule,options,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.CreateEvent(ev,schedule,options,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.DeleteEvent= function(eventID,deleteSeries,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.DeleteEvent(eventID,deleteSeries,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.SaveEventInfo= function(evnt,schedule,updateSeries,options,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.SaveEventInfo(evnt,schedule,updateSeries,options,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.GetEventInfo= function(eventID,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.GetEventInfo(eventID,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.GetScheduleInfo= function(scheduleID,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.GetScheduleInfo(scheduleID,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.GetCalendarsList= function(canWrite,options,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.GetCalendarsList(canWrite,options,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.GetCalendar= function(eventID,options,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.GetCalendar(eventID,options,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.IsRecurrent= function(eventID,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.IsRecurrent(eventID,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.GetHTMLDayInMonthView= function(date,options,startHour,hour,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.GetHTMLDayInMonthView(date,options,startHour,hour,onSuccess,onFailed,userContext); }
Sitecore.Modules.EventCalendar.Services.WebService.GetViewHTML= function(num,startHour,viewName,currentView,hour,options,onSuccess,onFailed,userContext) {Sitecore.Modules.EventCalendar.Services.WebService._staticInstance.GetViewHTML(num,startHour,viewName,currentView,hour,options,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Sitecore.Modules.EventCalendar.Objects');
if (typeof(Sitecore.Modules.EventCalendar.Objects.Event) === 'undefined') {
Sitecore.Modules.EventCalendar.Objects.Event=gtc("Sitecore.Modules.EventCalendar.Objects.Event");
Sitecore.Modules.EventCalendar.Objects.Event.registerClass('Sitecore.Modules.EventCalendar.Objects.Event');
}
if (typeof(Sitecore.Modules.EventCalendar.Objects.Schedule) === 'undefined') {
Sitecore.Modules.EventCalendar.Objects.Schedule=gtc("Sitecore.Modules.EventCalendar.Objects.Schedule");
Sitecore.Modules.EventCalendar.Objects.Schedule.registerClass('Sitecore.Modules.EventCalendar.Objects.Schedule');
}
Type.registerNamespace('Sitecore.Modules.EventCalendar.Logic.Utils');
if (typeof(Sitecore.Modules.EventCalendar.Logic.Utils.Options) === 'undefined') {
Sitecore.Modules.EventCalendar.Logic.Utils.Options=gtc("Sitecore.Modules.EventCalendar.Logic.Utils.Options");
Sitecore.Modules.EventCalendar.Logic.Utils.Options.registerClass('Sitecore.Modules.EventCalendar.Logic.Utils.Options');
}
