Type.registerNamespace('ITIC.SERVICES');
ITIC.SERVICES.ICalendarofEventsService=function() {
ITIC.SERVICES.ICalendarofEventsService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
ITIC.SERVICES.ICalendarofEventsService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return ITIC.SERVICES.ICalendarofEventsService._staticInstance.get_path();},
AddCalenderEvent:function(calenderEvent,succeededCallback, failedCallback, userContext) {
/// <param name="calenderEvent" type="ITIC.COMMON.DataContracts.CalendarEvent">ITIC.COMMON.DataContracts.CalendarEvent</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(), 'AddCalenderEvent',false,{calenderEvent:calenderEvent},succeededCallback,failedCallback,userContext); },
DeleteCalenderEvent: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(), 'DeleteCalenderEvent',false,{id:id},succeededCallback,failedCallback,userContext); },
UpdateCalenderEvent:function(calenderEvent,succeededCallback, failedCallback, userContext) {
/// <param name="calenderEvent" type="ITIC.COMMON.DataContracts.CalendarEvent">ITIC.COMMON.DataContracts.CalendarEvent</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(), 'UpdateCalenderEvent',false,{calenderEvent:calenderEvent},succeededCallback,failedCallback,userContext); },
UpdateUpcomingEventSettings:function(month,succeededCallback, failedCallback, userContext) {
/// <param name="month" 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(), 'UpdateUpcomingEventSettings',false,{month:month},succeededCallback,failedCallback,userContext); },
GetAllEventsofYear:function(year,succeededCallback, failedCallback, userContext) {
/// <param name="year" 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(), 'GetAllEventsofYear',false,{year:year},succeededCallback,failedCallback,userContext); },
GetAllYearsOfEvent: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(), 'GetAllYearsOfEvent',false,{},succeededCallback,failedCallback,userContext); },
GetLatestEvents: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(), 'GetLatestEvents',false,{},succeededCallback,failedCallback,userContext); },
GetAllEvents: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(), 'GetAllEvents',false,{},succeededCallback,failedCallback,userContext); },
GetAllEventsPublic: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(), 'GetAllEventsPublic',false,{},succeededCallback,failedCallback,userContext); },
GetUpcomingEventSetting: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(), 'GetUpcomingEventSetting',false,{},succeededCallback,failedCallback,userContext); },
GetAnEvent: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(), 'GetAnEvent',false,{id:id},succeededCallback,failedCallback,userContext); }}
ITIC.SERVICES.ICalendarofEventsService.registerClass('ITIC.SERVICES.ICalendarofEventsService',Sys.Net.WebServiceProxy);
ITIC.SERVICES.ICalendarofEventsService._staticInstance = new ITIC.SERVICES.ICalendarofEventsService();
ITIC.SERVICES.ICalendarofEventsService.set_path = function(value) {
ITIC.SERVICES.ICalendarofEventsService._staticInstance.set_path(value); }
ITIC.SERVICES.ICalendarofEventsService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return ITIC.SERVICES.ICalendarofEventsService._staticInstance.get_path();}
ITIC.SERVICES.ICalendarofEventsService.set_timeout = function(value) {
ITIC.SERVICES.ICalendarofEventsService._staticInstance.set_timeout(value); }
ITIC.SERVICES.ICalendarofEventsService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return ITIC.SERVICES.ICalendarofEventsService._staticInstance.get_timeout(); }
ITIC.SERVICES.ICalendarofEventsService.set_defaultUserContext = function(value) { 
ITIC.SERVICES.ICalendarofEventsService._staticInstance.set_defaultUserContext(value); }
ITIC.SERVICES.ICalendarofEventsService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return ITIC.SERVICES.ICalendarofEventsService._staticInstance.get_defaultUserContext(); }
ITIC.SERVICES.ICalendarofEventsService.set_defaultSucceededCallback = function(value) { 
 ITIC.SERVICES.ICalendarofEventsService._staticInstance.set_defaultSucceededCallback(value); }
ITIC.SERVICES.ICalendarofEventsService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return ITIC.SERVICES.ICalendarofEventsService._staticInstance.get_defaultSucceededCallback(); }
ITIC.SERVICES.ICalendarofEventsService.set_defaultFailedCallback = function(value) { 
ITIC.SERVICES.ICalendarofEventsService._staticInstance.set_defaultFailedCallback(value); }
ITIC.SERVICES.ICalendarofEventsService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return ITIC.SERVICES.ICalendarofEventsService._staticInstance.get_defaultFailedCallback(); }
ITIC.SERVICES.ICalendarofEventsService.set_path("/CalendarService.svc");
ITIC.SERVICES.ICalendarofEventsService.AddCalenderEvent= function(calenderEvent,onSuccess,onFailed,userContext) {
/// <param name="calenderEvent" type="ITIC.COMMON.DataContracts.CalendarEvent">ITIC.COMMON.DataContracts.CalendarEvent</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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.AddCalenderEvent(calenderEvent,onSuccess,onFailed,userContext); }
ITIC.SERVICES.ICalendarofEventsService.DeleteCalenderEvent= 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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.DeleteCalenderEvent(id,onSuccess,onFailed,userContext); }
ITIC.SERVICES.ICalendarofEventsService.UpdateCalenderEvent= function(calenderEvent,onSuccess,onFailed,userContext) {
/// <param name="calenderEvent" type="ITIC.COMMON.DataContracts.CalendarEvent">ITIC.COMMON.DataContracts.CalendarEvent</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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.UpdateCalenderEvent(calenderEvent,onSuccess,onFailed,userContext); }
ITIC.SERVICES.ICalendarofEventsService.UpdateUpcomingEventSettings= function(month,onSuccess,onFailed,userContext) {
/// <param name="month" 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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.UpdateUpcomingEventSettings(month,onSuccess,onFailed,userContext); }
ITIC.SERVICES.ICalendarofEventsService.GetAllEventsofYear= function(year,onSuccess,onFailed,userContext) {
/// <param name="year" 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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.GetAllEventsofYear(year,onSuccess,onFailed,userContext); }
ITIC.SERVICES.ICalendarofEventsService.GetAllYearsOfEvent= 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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.GetAllYearsOfEvent(onSuccess,onFailed,userContext); }
ITIC.SERVICES.ICalendarofEventsService.GetLatestEvents= 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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.GetLatestEvents(onSuccess,onFailed,userContext); }
ITIC.SERVICES.ICalendarofEventsService.GetAllEvents= 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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.GetAllEvents(onSuccess,onFailed,userContext); }
ITIC.SERVICES.ICalendarofEventsService.GetAllEventsPublic= 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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.GetAllEventsPublic(onSuccess,onFailed,userContext); }
ITIC.SERVICES.ICalendarofEventsService.GetUpcomingEventSetting= 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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.GetUpcomingEventSetting(onSuccess,onFailed,userContext); }
ITIC.SERVICES.ICalendarofEventsService.GetAnEvent= 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>
ITIC.SERVICES.ICalendarofEventsService._staticInstance.GetAnEvent(id,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('ITIC.COMMON.DataContracts');
if (typeof(ITIC.COMMON.DataContracts.CalendarEvent) === 'undefined') {
ITIC.COMMON.DataContracts.CalendarEvent=gtc("CalendarEvent:http://schemas.datacontract.org/2004/07/ITIC.COMMON.DataContracts");
ITIC.COMMON.DataContracts.CalendarEvent.registerClass('ITIC.COMMON.DataContracts.CalendarEvent');
}
if (typeof(ITIC.COMMON.DataContracts.ServiceResult) === 'undefined') {
ITIC.COMMON.DataContracts.ServiceResult=gtc("ServiceResult:http://schemas.datacontract.org/2004/07/ITIC.COMMON.DataContracts");
ITIC.COMMON.DataContracts.ServiceResult.registerClass('ITIC.COMMON.DataContracts.ServiceResult');
}
Type.registerNamespace('System');
if (typeof(System.Exception) === 'undefined') {
System.Exception=gtc("Exception:http://schemas.datacontract.org/2004/07/System");
System.Exception.registerClass('System.Exception');
}

