var EventService=function() {
EventService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
EventService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return EventService._staticInstance.get_path();},
GetPastEvents:function(venueId,year,succeededCallback, failedCallback, userContext) {
/// <param name="venueId" type="Number">System.Int32</param>
/// <param name="year" type="Number">System.Int64</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(), 'GetPastEvents',false,{venueId:venueId,year:year},succeededCallback,failedCallback,userContext); },
GetEvents:function(venueId,categoryId,first,count,succeededCallback, failedCallback, userContext) {
/// <param name="venueId" type="Number">System.Int32</param>
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="first" type="Number">System.Int32</param>
/// <param name="count" 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,{venueId:venueId,categoryId:categoryId,first:first,count:count},succeededCallback,failedCallback,userContext); },
GetEventsCount:function(venueId,categoryId,succeededCallback, failedCallback, userContext) {
/// <param name="venueId" type="Number">System.Int32</param>
/// <param name="categoryId" 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(), 'GetEventsCount',false,{venueId:venueId,categoryId:categoryId},succeededCallback,failedCallback,userContext); }}
EventService.registerClass('EventService',Sys.Net.WebServiceProxy);
EventService._staticInstance = new EventService();
EventService.set_path = function(value) {
EventService._staticInstance.set_path(value); }
EventService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return EventService._staticInstance.get_path();}
EventService.set_timeout = function(value) {
EventService._staticInstance.set_timeout(value); }
EventService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return EventService._staticInstance.get_timeout(); }
EventService.set_defaultUserContext = function(value) { 
EventService._staticInstance.set_defaultUserContext(value); }
EventService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return EventService._staticInstance.get_defaultUserContext(); }
EventService.set_defaultSucceededCallback = function(value) { 
 EventService._staticInstance.set_defaultSucceededCallback(value); }
EventService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return EventService._staticInstance.get_defaultSucceededCallback(); }
EventService.set_defaultFailedCallback = function(value) { 
EventService._staticInstance.set_defaultFailedCallback(value); }
EventService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return EventService._staticInstance.get_defaultFailedCallback(); }
EventService.set_path("/SQServices/SQEvents/EventService.svc");
EventService.GetPastEvents= function(venueId,year,onSuccess,onFailed,userContext) {
/// <param name="venueId" type="Number">System.Int32</param>
/// <param name="year" type="Number">System.Int64</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>
EventService._staticInstance.GetPastEvents(venueId,year,onSuccess,onFailed,userContext); }
EventService.GetEvents= function(venueId,categoryId,first,count,onSuccess,onFailed,userContext) {
/// <param name="venueId" type="Number">System.Int32</param>
/// <param name="categoryId" type="Number">System.Int32</param>
/// <param name="first" type="Number">System.Int32</param>
/// <param name="count" 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>
EventService._staticInstance.GetEvents(venueId,categoryId,first,count,onSuccess,onFailed,userContext); }
EventService.GetEventsCount= function(venueId,categoryId,onSuccess,onFailed,userContext) {
/// <param name="venueId" type="Number">System.Int32</param>
/// <param name="categoryId" 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>
EventService._staticInstance.GetEventsCount(venueId,categoryId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('SQ.SQServices.SQEvents.DTO');
if (typeof(SQ.SQServices.SQEvents.DTO.PastEventDTO) === 'undefined') {
SQ.SQServices.SQEvents.DTO.PastEventDTO=gtc("PastEventDTO:http://schemas.datacontract.org/2004/07/SQ.SQServices.SQEvents.DTO");
SQ.SQServices.SQEvents.DTO.PastEventDTO.registerClass('SQ.SQServices.SQEvents.DTO.PastEventDTO');
}
if (typeof(SQ.SQServices.SQEvents.DTO.EventDTO) === 'undefined') {
SQ.SQServices.SQEvents.DTO.EventDTO=gtc("EventDTO:http://schemas.datacontract.org/2004/07/SQ.SQServices.SQEvents.DTO");
SQ.SQServices.SQEvents.DTO.EventDTO.registerClass('SQ.SQServices.SQEvents.DTO.EventDTO');
}

