Type.registerNamespace('DDC');
DDC.EventService=function() {
DDC.EventService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
DDC.EventService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return DDC.EventService._staticInstance.get_path();},
GetEvents: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(), 'GetEvents',false,{id:id},succeededCallback,failedCallback,userContext); }}
DDC.EventService.registerClass('DDC.EventService',Sys.Net.WebServiceProxy);
DDC.EventService._staticInstance = new DDC.EventService();
DDC.EventService.set_path = function(value) {
DDC.EventService._staticInstance.set_path(value); }
DDC.EventService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return DDC.EventService._staticInstance.get_path();}
DDC.EventService.set_timeout = function(value) {
DDC.EventService._staticInstance.set_timeout(value); }
DDC.EventService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return DDC.EventService._staticInstance.get_timeout(); }
DDC.EventService.set_defaultUserContext = function(value) { 
DDC.EventService._staticInstance.set_defaultUserContext(value); }
DDC.EventService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return DDC.EventService._staticInstance.get_defaultUserContext(); }
DDC.EventService.set_defaultSucceededCallback = function(value) { 
 DDC.EventService._staticInstance.set_defaultSucceededCallback(value); }
DDC.EventService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return DDC.EventService._staticInstance.get_defaultSucceededCallback(); }
DDC.EventService.set_defaultFailedCallback = function(value) { 
DDC.EventService._staticInstance.set_defaultFailedCallback(value); }
DDC.EventService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return DDC.EventService._staticInstance.get_defaultFailedCallback(); }
DDC.EventService.set_path("/Events.asmx");
DDC.EventService.GetEvents= 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>
DDC.EventService._staticInstance.GetEvents(id,onSuccess,onFailed,userContext); }

